mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17: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"
|
||||
"botright"
|
||||
(unknown_command_name)
|
||||
"edit"
|
||||
"enew"
|
||||
"find"
|
||||
"ex"
|
||||
"visual"
|
||||
"view"
|
||||
] @keyword
|
||||
(map_statement cmd: _ @keyword)
|
||||
(command_name) @function.macro
|
||||
|
|
@ -145,10 +151,16 @@
|
|||
|
||||
;; Command command
|
||||
|
||||
(command_attribute name: _ @property)
|
||||
(command_attribute
|
||||
name: _ @property
|
||||
val: (behavior
|
||||
(identifier)? @function) @constant)
|
||||
name: _ @constant
|
||||
val: (identifier)? @function)?)
|
||||
|
||||
;; Edit command
|
||||
(plus_plus_opt
|
||||
val: _? @constant) @property
|
||||
(plus_cmd "+" @property) @property
|
||||
|
||||
;; Runtime command
|
||||
|
||||
|
|
@ -203,6 +215,7 @@
|
|||
"/="
|
||||
"%="
|
||||
".="
|
||||
"..="
|
||||
] @operator
|
||||
|
||||
; Some characters have different meanings based on the context
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue