aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--queries/vim/highlights.scm16
1 files changed, 16 insertions, 0 deletions
diff --git a/queries/vim/highlights.scm b/queries/vim/highlights.scm
index 4a0481536..a44e07ad3 100644
--- a/queries/vim/highlights.scm
+++ b/queries/vim/highlights.scm
@@ -61,6 +61,7 @@
"autocmd"
"augroup"
"return"
+ "syntax"
"lua"
"ruby"
"perl"
@@ -70,6 +71,21 @@
(map_statement cmd: _ @keyword)
(command_name) @function.macro
+;; Syntax command
+
+(syntax_statement (keyword) @string)
+(syntax_statement [
+ "enable"
+ "on"
+ "off"
+ "reset"
+ "case"
+ "spell"
+ "foldlevel"
+ "iskeyword"
+ "keyword"
+] @keyword)
+
[
"<buffer>"
"<nowait>"