aboutsummaryrefslogtreecommitdiffstats
path: root/queries/vim
diff options
context:
space:
mode:
authorPierrick Guillaume <pierguill@gmail.com>2022-02-08 15:42:27 +0100
committerStephan Seitz <stephan.seitz@fau.de>2022-02-08 16:27:40 +0100
commitc867d483a5daee60ba6fb7ec9151c5578e4e96ed (patch)
tree0b1c6b3bc7788e93cb581b8026d4abe52dd7a25e /queries/vim
parentUpdate lockfile.json (#2490) (diff)
downloadnvim-treesitter-c867d483a5daee60ba6fb7ec9151c5578e4e96ed.tar
nvim-treesitter-c867d483a5daee60ba6fb7ec9151c5578e4e96ed.tar.gz
nvim-treesitter-c867d483a5daee60ba6fb7ec9151c5578e4e96ed.tar.bz2
nvim-treesitter-c867d483a5daee60ba6fb7ec9151c5578e4e96ed.tar.lz
nvim-treesitter-c867d483a5daee60ba6fb7ec9151c5578e4e96ed.tar.xz
nvim-treesitter-c867d483a5daee60ba6fb7ec9151c5578e4e96ed.tar.zst
nvim-treesitter-c867d483a5daee60ba6fb7ec9151c5578e4e96ed.zip
add(vim): add highlight for more keywords
Diffstat (limited to 'queries/vim')
-rw-r--r--queries/vim/highlights.scm19
1 files changed, 18 insertions, 1 deletions
diff --git a/queries/vim/highlights.scm b/queries/vim/highlights.scm
index 2d1d98c32..a5667a0b6 100644
--- a/queries/vim/highlights.scm
+++ b/queries/vim/highlights.scm
@@ -59,6 +59,7 @@
"setlocal"
"silent"
"echo"
+ "echomsg"
"autocmd"
"augroup"
"return"
@@ -70,6 +71,12 @@
"highlight"
"delcommand"
"comclear"
+ "colorscheme"
+ "startinsert"
+ "stopinsert"
+ "global"
+ "runtime"
+ "wincmd"
] @keyword
(map_statement cmd: _ @keyword)
(command_name) @function.macro
@@ -121,13 +128,23 @@
"clear"
] @keyword)
+;; Runtime command
+
+(runtime_statement (where) @keyword.operator)
+
+;; Colorscheme command
+
+(colorscheme_statement (name) @string)
+
;; Literals
(string_literal) @string
(integer_literal) @number
(float_literal) @float
(comment) @comment
-(pattern) @string.special
+(pattern
+ (pattern_multi) @string.regex) @string.special
+(filename) @string
((scoped_identifier
(scope) @_scope . (identifier) @boolean)
(#eq? @_scope "v:")