aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-09-07 09:30:00 +0200
committerChristian Clason <christian.clason@uni-due.de>2022-09-08 01:24:39 +0200
commite58b7f9950c4aa875ea1502ace042330ee63a417 (patch)
tree65068188089b52b94d4fc89d52a08c39a4654d83
parentfeat(spell): upstream spell queries from spellsitter (diff)
downloadnvim-treesitter-e58b7f9950c4aa875ea1502ace042330ee63a417.tar
nvim-treesitter-e58b7f9950c4aa875ea1502ace042330ee63a417.tar.gz
nvim-treesitter-e58b7f9950c4aa875ea1502ace042330ee63a417.tar.bz2
nvim-treesitter-e58b7f9950c4aa875ea1502ace042330ee63a417.tar.lz
nvim-treesitter-e58b7f9950c4aa875ea1502ace042330ee63a417.tar.xz
nvim-treesitter-e58b7f9950c4aa875ea1502ace042330ee63a417.tar.zst
nvim-treesitter-e58b7f9950c4aa875ea1502ace042330ee63a417.zip
feat(viml): bump parser and queries
-rw-r--r--lockfile.json2
-rw-r--r--queries/vim/highlights.scm18
2 files changed, 12 insertions, 8 deletions
diff --git a/lockfile.json b/lockfile.json
index 27e9a1179..061679f17 100644
--- a/lockfile.json
+++ b/lockfile.json
@@ -366,7 +366,7 @@
"revision": "8f6b1f357d1231c420404b5f7a368a73c25adfa2"
},
"vim": {
- "revision": "31ced69f19b65cb92a3f30e71b0b76216d8aeea3"
+ "revision": "f8c5c653f9392ec9daad6a513374486cee66bb54"
},
"vue": {
"revision": "91fe2754796cd8fba5f229505a23fa08f3546c06"
diff --git a/queries/vim/highlights.scm b/queries/vim/highlights.scm
index bfe05e585..37a081b93 100644
--- a/queries/vim/highlights.scm
+++ b/queries/vim/highlights.scm
@@ -40,7 +40,7 @@
(parameters (identifier) @parameter)
(default_parameter (identifier) @parameter)
-[ (bang) (spread) (at) ] @punctuation.special
+[ (bang) (spread) ] @punctuation.special
[ (no_option) (inv_option) (default_option) (option_name) ] @variable.builtin
[
@@ -131,11 +131,6 @@
"<unique>"
] @constant.builtin
-(hl_attribute
- key: _ @property
- val: _ @constant)
-
-(hl_group) @variable
(augroup_name) @namespace
(au_event) @constant
@@ -143,6 +138,12 @@
;; Highlight command
+(hl_attribute
+ key: _ @property
+ val: _ @constant)
+
+(hl_group) @type
+
(highlight_statement [
"default"
"link"
@@ -151,6 +152,8 @@
;; Command command
+(command) @string
+
(command_attribute
name: _ @property
val: (behavior
@@ -173,9 +176,10 @@
;; Literals
(string_literal) @string
+(string_literal) @spell
(integer_literal) @number
(float_literal) @float
-(comment) @comment
+(comment) @comment @spell
(pattern) @string.special
(pattern_multi) @string.regex
(filename) @string