aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2022-09-08 19:46:40 +0200
committerGitHub <noreply@github.com>2022-09-08 19:46:40 +0200
commit79a9b0067131d264d79cf15ce50e04ff14c2c816 (patch)
tree37e5559198e436ab880c3794f60b4673e28a39a2 /runtime
parent19a3b2c26e28382a65529a38be9ff63ca58cc023 (diff)
downloadrneovim-79a9b0067131d264d79cf15ce50e04ff14c2c816.tar.gz
rneovim-79a9b0067131d264d79cf15ce50e04ff14c2c816.tar.bz2
rneovim-79a9b0067131d264d79cf15ce50e04ff14c2c816.zip
build(deps): bump tree-sitter-viml to 0.2.0 (#20121)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/vim/highlights.scm32
1 files changed, 22 insertions, 10 deletions
diff --git a/runtime/queries/vim/highlights.scm b/runtime/queries/vim/highlights.scm
index 1bbaebef01..3d1729b2cd 100644
--- a/runtime/queries/vim/highlights.scm
+++ b/runtime/queries/vim/highlights.scm
@@ -40,7 +40,7 @@
(parameters (identifier) @parameter)
(default_parameter (identifier) @parameter)
-[ (bang) (spread) (at) ] @punctuation.special
+[ (bang) (spread) ] @punctuation.special
[ (no_option) (inv_option) (default_option) (option_name) ] @variable.builtin
[
@@ -92,6 +92,12 @@
"topleft"
"botright"
(unknown_command_name)
+ "edit"
+ "enew"
+ "find"
+ "ex"
+ "visual"
+ "view"
] @keyword
(map_statement cmd: _ @keyword)
(command_name) @function.macro
@@ -125,11 +131,6 @@
"<unique>"
] @constant.builtin
-(hl_attribute
- key: _ @property
- val: _ @constant)
-
-(hl_group) @variable
(augroup_name) @namespace
(au_event) @constant
@@ -137,6 +138,12 @@
;; Highlight command
+(hl_attribute
+ key: _ @property
+ val: _ @constant)
+
+(hl_group) @type
+
(highlight_statement [
"default"
"link"
@@ -145,12 +152,19 @@
;; Command command
+(command) @string
+
(command_attribute
name: _ @property
val: (behavior
name: _ @constant
val: (identifier)? @function)?)
+;; Edit command
+(plus_plus_opt
+ val: _? @constant) @property
+(plus_cmd "+" @property) @property
+
;; Runtime command
(runtime_statement (where) @keyword.operator)
@@ -161,12 +175,10 @@
;; Literals
-(string_literal) @string
-(string_literal) @spell
+(string_literal) @string @spell
(integer_literal) @number
(float_literal) @float
-(comment) @comment
-(comment) @spell
+(comment) @comment @spell
(pattern) @string.special
(pattern_multi) @string.regex
(filename) @string