aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2021-08-20 10:05:34 +0200
committerThomas Vigouroux <tomvig38@gmail.com>2021-08-20 10:22:01 +0200
commit43c70a73e7ecb513cadec2a1b6fd5151dda6ca7b (patch)
tree98c04bbb34906e0b41e2c71cd1a18a992e6a688d
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-43c70a73e7ecb513cadec2a1b6fd5151dda6ca7b.tar
nvim-treesitter-43c70a73e7ecb513cadec2a1b6fd5151dda6ca7b.tar.gz
nvim-treesitter-43c70a73e7ecb513cadec2a1b6fd5151dda6ca7b.tar.bz2
nvim-treesitter-43c70a73e7ecb513cadec2a1b6fd5151dda6ca7b.tar.lz
nvim-treesitter-43c70a73e7ecb513cadec2a1b6fd5151dda6ca7b.tar.xz
nvim-treesitter-43c70a73e7ecb513cadec2a1b6fd5151dda6ca7b.tar.zst
nvim-treesitter-43c70a73e7ecb513cadec2a1b6fd5151dda6ca7b.zip
fix(viml): update and support mappings
-rw-r--r--lockfile.json2
-rw-r--r--queries/vim/highlights.scm10
2 files changed, 11 insertions, 1 deletions
diff --git a/lockfile.json b/lockfile.json
index fce7c59c8..8a97455f2 100644
--- a/lockfile.json
+++ b/lockfile.json
@@ -201,7 +201,7 @@
"revision": "8f6b1f357d1231c420404b5f7a368a73c25adfa2"
},
"vim": {
- "revision": "3c6b549ed97262edfa8059d884773f157d9efa38"
+ "revision": "7ddc0e0a0d96b4886b16afcbd161e33a53ef4fd0"
},
"vue": {
"revision": "91fe2754796cd8fba5f229505a23fa08f3546c06"
diff --git a/queries/vim/highlights.scm b/queries/vim/highlights.scm
index 5f5f6cd08..f7b955837 100644
--- a/queries/vim/highlights.scm
+++ b/queries/vim/highlights.scm
@@ -57,8 +57,18 @@
"perl"
"python"
] @keyword
+(map_statement cmd: _ @keyword)
(command_name) @function.macro
+[
+ "<buffer>"
+ "<nowait>"
+ "<silent>"
+ "<script>"
+ "<expr>"
+ "<unique>"
+] @constant.builtin
+
(au_event) @constant
(normal_statement (commands) @constant)