mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00:02 -04:00
feat(viml): update queries
This commit is contained in:
parent
325de255a6
commit
9c3a1366bc
1 changed files with 12 additions and 1 deletions
|
|
@ -67,6 +67,8 @@
|
||||||
"augroup"
|
"augroup"
|
||||||
"return"
|
"return"
|
||||||
"syntax"
|
"syntax"
|
||||||
|
"filetype"
|
||||||
|
"source"
|
||||||
"lua"
|
"lua"
|
||||||
"ruby"
|
"ruby"
|
||||||
"perl"
|
"perl"
|
||||||
|
|
@ -102,6 +104,16 @@
|
||||||
(map_statement cmd: _ @keyword)
|
(map_statement cmd: _ @keyword)
|
||||||
(command_name) @function.macro
|
(command_name) @function.macro
|
||||||
|
|
||||||
|
;; Filetype command
|
||||||
|
|
||||||
|
(filetype_statement [
|
||||||
|
"detect"
|
||||||
|
"plugin"
|
||||||
|
"indent"
|
||||||
|
"on"
|
||||||
|
"off"
|
||||||
|
] @keyword)
|
||||||
|
|
||||||
;; Syntax command
|
;; Syntax command
|
||||||
|
|
||||||
(syntax_statement (keyword) @string)
|
(syntax_statement (keyword) @string)
|
||||||
|
|
@ -176,7 +188,6 @@
|
||||||
;; Literals
|
;; Literals
|
||||||
|
|
||||||
(string_literal) @string
|
(string_literal) @string
|
||||||
(string_literal) @spell
|
|
||||||
(integer_literal) @number
|
(integer_literal) @number
|
||||||
(float_literal) @float
|
(float_literal) @float
|
||||||
(comment) @comment @spell
|
(comment) @comment @spell
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue