aboutsummaryrefslogtreecommitdiffstats
path: root/queries/vim
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-08-26 20:20:49 +0200
committerChristian Clason <christian.clason@uni-due.de>2022-08-26 20:54:32 +0200
commit08e9b7cdf79b4ac4fcb1d26ad8ed37241f968754 (patch)
treec29af8ef9c3bdb474f5280e14f108196a139c243 /queries/vim
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-08e9b7cdf79b4ac4fcb1d26ad8ed37241f968754.tar
nvim-treesitter-08e9b7cdf79b4ac4fcb1d26ad8ed37241f968754.tar.gz
nvim-treesitter-08e9b7cdf79b4ac4fcb1d26ad8ed37241f968754.tar.bz2
nvim-treesitter-08e9b7cdf79b4ac4fcb1d26ad8ed37241f968754.tar.lz
nvim-treesitter-08e9b7cdf79b4ac4fcb1d26ad8ed37241f968754.tar.xz
nvim-treesitter-08e9b7cdf79b4ac4fcb1d26ad8ed37241f968754.tar.zst
nvim-treesitter-08e9b7cdf79b4ac4fcb1d26ad8ed37241f968754.zip
feat(viml): update queries
Diffstat (limited to 'queries/vim')
-rw-r--r--queries/vim/highlights.scm17
1 files changed, 15 insertions, 2 deletions
diff --git a/queries/vim/highlights.scm b/queries/vim/highlights.scm
index 1951f341e..bfe05e585 100644
--- a/queries/vim/highlights.scm
+++ b/queries/vim/highlights.scm
@@ -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