aboutsummaryrefslogtreecommitdiffstats
path: root/queries/query/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'queries/query/highlights.scm')
-rw-r--r--queries/query/highlights.scm16
1 files changed, 16 insertions, 0 deletions
diff --git a/queries/query/highlights.scm b/queries/query/highlights.scm
index c7f0d891a..ccf13a6c8 100644
--- a/queries/query/highlights.scm
+++ b/queries/query/highlights.scm
@@ -32,3 +32,19 @@
((program . (comment)* . (comment) @preproc)
(#lua-match? @preproc "^;+ *extends *$"))
+
+((predicate
+ name: (identifier) @_name
+ parameters: (parameters (string "\"" @string "\"" @string) @string.regex))
+ (#any-of? @_name
+ "match"
+ "not-match"
+ "vim-match"
+ "not-vim-match"
+ "lua-match"
+ "not-lua-match"))
+
+((predicate
+ name: (identifier) @_name
+ parameters: (parameters (string "\"" @string "\"" @string) @string.regex . (string) .))
+ (#any-of? @_name "gsub" "not-gsub"))