mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 13:30:01 -04:00
feat: more @string.regex highlights
This commit is contained in:
parent
c4da794564
commit
92572c0dfd
3 changed files with 62 additions and 0 deletions
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue