mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 01:40:02 -04:00
feat(viml): update queries
This commit is contained in:
parent
e214652c28
commit
08e9b7cdf7
1 changed files with 15 additions and 2 deletions
|
|
@ -92,6 +92,12 @@
|
||||||
"topleft"
|
"topleft"
|
||||||
"botright"
|
"botright"
|
||||||
(unknown_command_name)
|
(unknown_command_name)
|
||||||
|
"edit"
|
||||||
|
"enew"
|
||||||
|
"find"
|
||||||
|
"ex"
|
||||||
|
"visual"
|
||||||
|
"view"
|
||||||
] @keyword
|
] @keyword
|
||||||
(map_statement cmd: _ @keyword)
|
(map_statement cmd: _ @keyword)
|
||||||
(command_name) @function.macro
|
(command_name) @function.macro
|
||||||
|
|
@ -145,10 +151,16 @@
|
||||||
|
|
||||||
;; Command command
|
;; Command command
|
||||||
|
|
||||||
(command_attribute name: _ @property)
|
|
||||||
(command_attribute
|
(command_attribute
|
||||||
|
name: _ @property
|
||||||
val: (behavior
|
val: (behavior
|
||||||
(identifier)? @function) @constant)
|
name: _ @constant
|
||||||
|
val: (identifier)? @function)?)
|
||||||
|
|
||||||
|
;; Edit command
|
||||||
|
(plus_plus_opt
|
||||||
|
val: _? @constant) @property
|
||||||
|
(plus_cmd "+" @property) @property
|
||||||
|
|
||||||
;; Runtime command
|
;; Runtime command
|
||||||
|
|
||||||
|
|
@ -203,6 +215,7 @@
|
||||||
"/="
|
"/="
|
||||||
"%="
|
"%="
|
||||||
".="
|
".="
|
||||||
|
"..="
|
||||||
] @operator
|
] @operator
|
||||||
|
|
||||||
; Some characters have different meanings based on the context
|
; Some characters have different meanings based on the context
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue