summaryrefslogtreecommitdiff
path: root/queries/vim
diff options
context:
space:
mode:
authorThomas Vigouroux <tomvig38@gmail.com>2021-08-25 17:02:02 +0200
committerThomas Vigouroux <tomvig38@gmail.com>2021-08-26 09:55:32 +0200
commit55490587798108d5723d922c76272a94c5c189d9 (patch)
treead71e91a8f166208c2137089ae2033560f772df6 /queries/vim
parent4f2265632becabcd2c5b1791fa31ef278f1e496c (diff)
feat(vim): highlight highlight_statement correctly
Fixes #1747
Diffstat (limited to 'queries/vim')
-rw-r--r--queries/vim/highlights.scm13
1 files changed, 9 insertions, 4 deletions
diff --git a/queries/vim/highlights.scm b/queries/vim/highlights.scm
index eadede98..7c723da2 100644
--- a/queries/vim/highlights.scm
+++ b/queries/vim/highlights.scm
@@ -64,6 +64,7 @@
"ruby"
"perl"
"python"
+ "highlight"
] @keyword
(map_statement cmd: _ @keyword)
(command_name) @function.macro
@@ -77,10 +78,14 @@
"<unique>"
] @constant.builtin
-[
- (augroup_name)
- (au_event)
-] @constant
+(hl_attribute
+ key: _ @property
+ val: _ @constant)
+
+(hl_group) @variable
+(augroup_name) @namespace
+
+(au_event) @constant
(normal_statement (commands) @constant)
;; Literals