mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 12:06:55 -04:00
Vim: update highlights and injections
This commit is contained in:
parent
ee213de0cd
commit
949ec04726
2 changed files with 23 additions and 0 deletions
|
|
@ -158,3 +158,12 @@
|
|||
; Options
|
||||
((set_value) @number
|
||||
(#match? @number "^[0-9]+(\.[0-9]+)?$"))
|
||||
|
||||
((set_item
|
||||
option: (option_name) @_option
|
||||
value: (set_value) @function)
|
||||
(#any-of? @_option
|
||||
"tagfunc" "tfu"
|
||||
"completefunc" "cfu"
|
||||
"omnifunc" "ofu"
|
||||
"operatorfunc" "opfunc"))
|
||||
|
|
|
|||
|
|
@ -6,4 +6,18 @@
|
|||
|
||||
(autocmd_statement (pattern) @regex)
|
||||
|
||||
((set_item
|
||||
option: (option_name) @_option
|
||||
value: (set_value) @vim)
|
||||
(#any-of? @_option
|
||||
"includeexpr" "inex"
|
||||
"printexpr" "pexpr"
|
||||
"formatexpr" "fex"
|
||||
"indentexpr" "inde"
|
||||
"foldtext" "fdt"
|
||||
"foldexpr" "fde"
|
||||
"diffexpr" "dex"
|
||||
"patchexpr" "pex"
|
||||
"charconvert" "ccv"))
|
||||
|
||||
(comment) @comment
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue