Vim: update highlights and injections

This commit is contained in:
Santos Gallegos 2021-09-25 00:17:46 -05:00 committed by Stephan Seitz
parent ee213de0cd
commit 949ec04726
2 changed files with 23 additions and 0 deletions

View file

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

View file

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