aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Vigouroux <thomas.vigouroux@protonmail.com>2022-08-23 14:17:55 +0200
committerThomas Vigouroux <thomas.vigouroux@protonmail.com>2022-08-23 14:28:36 +0200
commitea8d8bbef041bcb4130aaa66f4b29bd68160bbb0 (patch)
tree845c81661e6b419e365ebf629c6263925a04f3f7
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-ea8d8bbef041bcb4130aaa66f4b29bd68160bbb0.tar
nvim-treesitter-ea8d8bbef041bcb4130aaa66f4b29bd68160bbb0.tar.gz
nvim-treesitter-ea8d8bbef041bcb4130aaa66f4b29bd68160bbb0.tar.bz2
nvim-treesitter-ea8d8bbef041bcb4130aaa66f4b29bd68160bbb0.tar.lz
nvim-treesitter-ea8d8bbef041bcb4130aaa66f4b29bd68160bbb0.tar.xz
nvim-treesitter-ea8d8bbef041bcb4130aaa66f4b29bd68160bbb0.tar.zst
nvim-treesitter-ea8d8bbef041bcb4130aaa66f4b29bd68160bbb0.zip
feat(vim): update to latest highlights
-rw-r--r--lockfile.json2
-rw-r--r--queries/vim/highlights.scm18
2 files changed, 19 insertions, 1 deletions
diff --git a/lockfile.json b/lockfile.json
index 79a6c8489..f65e62a82 100644
--- a/lockfile.json
+++ b/lockfile.json
@@ -357,7 +357,7 @@
"revision": "8f6b1f357d1231c420404b5f7a368a73c25adfa2"
},
"vim": {
- "revision": "2ae322e81ee0852207c584b289db9fd1044894d8"
+ "revision": "066760141be9085368eb00680fbd43b73533d443"
},
"vue": {
"revision": "91fe2754796cd8fba5f229505a23fa08f3546c06"
diff --git a/queries/vim/highlights.scm b/queries/vim/highlights.scm
index 210705597..7bd481925 100644
--- a/queries/vim/highlights.scm
+++ b/queries/vim/highlights.scm
@@ -72,6 +72,7 @@
"perl"
"python"
"highlight"
+ "command"
"delcommand"
"comclear"
"colorscheme"
@@ -80,6 +81,16 @@
"global"
"runtime"
"wincmd"
+ "cnext"
+ "cprevious"
+ "cNext"
+ "vertical"
+ "leftabove"
+ "aboveleft"
+ "rightbelow"
+ "belowright"
+ "topleft"
+ "botright"
] @keyword
(map_statement cmd: _ @keyword)
[
@@ -134,6 +145,13 @@
"clear"
] @keyword)
+;; Command command
+
+(command_attribute name: _ @property)
+(command_attribute
+ val: (behavior
+ (identifier)? @function) @constant)
+
;; Runtime command
(runtime_statement (where) @keyword.operator)