fix(vim): support syntax command and update parser

This commit is contained in:
Thomas Vigouroux 2021-08-31 09:35:48 +02:00 committed by Stephan Seitz
parent 6e25164004
commit b12ab1d851

View file

@ -61,6 +61,7 @@
"autocmd"
"augroup"
"return"
"syntax"
"lua"
"ruby"
"perl"
@ -70,6 +71,21 @@
(map_statement cmd: _ @keyword)
(command_name) @function.macro
;; Syntax command
(syntax_statement (keyword) @string)
(syntax_statement [
"enable"
"on"
"off"
"reset"
"case"
"spell"
"foldlevel"
"iskeyword"
"keyword"
] @keyword)
[
"<buffer>"
"<nowait>"