add(vim): add highlight for more keywords

This commit is contained in:
Pierrick Guillaume 2022-02-08 15:42:27 +01:00 committed by Stephan Seitz
parent 6bc17444fb
commit c867d483a5

View file

@ -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:")