summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--queries/vim/highlights.scm13
1 files changed, 12 insertions, 1 deletions
diff --git a/queries/vim/highlights.scm b/queries/vim/highlights.scm
index 37a081b9..8c86cea9 100644
--- a/queries/vim/highlights.scm
+++ b/queries/vim/highlights.scm
@@ -67,6 +67,8 @@
"augroup"
"return"
"syntax"
+ "filetype"
+ "source"
"lua"
"ruby"
"perl"
@@ -102,6 +104,16 @@
(map_statement cmd: _ @keyword)
(command_name) @function.macro
+;; Filetype command
+
+(filetype_statement [
+ "detect"
+ "plugin"
+ "indent"
+ "on"
+ "off"
+] @keyword)
+
;; Syntax command
(syntax_statement (keyword) @string)
@@ -176,7 +188,6 @@
;; Literals
(string_literal) @string
-(string_literal) @spell
(integer_literal) @number
(float_literal) @float
(comment) @comment @spell