mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 20:40:02 -04:00
fix(vim): support syntax command and update parser
This commit is contained in:
parent
6e25164004
commit
b12ab1d851
1 changed files with 16 additions and 0 deletions
|
|
@ -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>"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue