feat: more @string.regex highlights

This commit is contained in:
Riley Bruins 2023-12-21 15:31:40 -08:00 committed by Christian Clason
parent c4da794564
commit 92572c0dfd
3 changed files with 62 additions and 0 deletions

View file

@ -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"))