aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-10-15 10:54:43 +0200
committerChristian Clason <christian.clason@uni-due.de>2022-10-15 13:01:35 +0200
commit9c3a1366bcaa476ee058fac5b75b8f09a590d8af (patch)
treed21db556099e1cea0b50560216a0d992b5773085
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-9c3a1366bcaa476ee058fac5b75b8f09a590d8af.tar
nvim-treesitter-9c3a1366bcaa476ee058fac5b75b8f09a590d8af.tar.gz
nvim-treesitter-9c3a1366bcaa476ee058fac5b75b8f09a590d8af.tar.bz2
nvim-treesitter-9c3a1366bcaa476ee058fac5b75b8f09a590d8af.tar.lz
nvim-treesitter-9c3a1366bcaa476ee058fac5b75b8f09a590d8af.tar.xz
nvim-treesitter-9c3a1366bcaa476ee058fac5b75b8f09a590d8af.tar.zst
nvim-treesitter-9c3a1366bcaa476ee058fac5b75b8f09a590d8af.zip
feat(viml): update queries
-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 37a081b93..8c86cea94 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