summaryrefslogtreecommitdiffstats
path: root/queries/vim
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 /queries/vim
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
Diffstat (limited to 'queries/vim')
-rw-r--r--queries/vim/highlights.scm18
1 files changed, 11 insertions, 7 deletions
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