mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -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"
|
"autocmd"
|
||||||
"augroup"
|
"augroup"
|
||||||
"return"
|
"return"
|
||||||
|
"syntax"
|
||||||
"lua"
|
"lua"
|
||||||
"ruby"
|
"ruby"
|
||||||
"perl"
|
"perl"
|
||||||
|
|
@ -70,6 +71,21 @@
|
||||||
(map_statement cmd: _ @keyword)
|
(map_statement cmd: _ @keyword)
|
||||||
(command_name) @function.macro
|
(command_name) @function.macro
|
||||||
|
|
||||||
|
;; Syntax command
|
||||||
|
|
||||||
|
(syntax_statement (keyword) @string)
|
||||||
|
(syntax_statement [
|
||||||
|
"enable"
|
||||||
|
"on"
|
||||||
|
"off"
|
||||||
|
"reset"
|
||||||
|
"case"
|
||||||
|
"spell"
|
||||||
|
"foldlevel"
|
||||||
|
"iskeyword"
|
||||||
|
"keyword"
|
||||||
|
] @keyword)
|
||||||
|
|
||||||
[
|
[
|
||||||
"<buffer>"
|
"<buffer>"
|
||||||
"<nowait>"
|
"<nowait>"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue