feat(viml): update queries

This commit is contained in:
Christian Clason 2022-08-26 20:20:49 +02:00 committed by Christian Clason
parent e214652c28
commit 08e9b7cdf7

View file

@ -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