diff options
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/vim/highlights.scm | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/queries/vim/highlights.scm b/queries/vim/highlights.scm index bfe05e585..37a081b93 100644 --- a/queries/vim/highlights.scm +++ b/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 [ @@ -131,11 +131,6 @@ "<unique>" ] @constant.builtin -(hl_attribute - key: _ @property - val: _ @constant) - -(hl_group) @variable (augroup_name) @namespace (au_event) @constant @@ -143,6 +138,12 @@ ;; Highlight command +(hl_attribute + key: _ @property + val: _ @constant) + +(hl_group) @type + (highlight_statement [ "default" "link" @@ -151,6 +152,8 @@ ;; Command command +(command) @string + (command_attribute name: _ @property val: (behavior @@ -173,9 +176,10 @@ ;; Literals (string_literal) @string +(string_literal) @spell (integer_literal) @number (float_literal) @float -(comment) @comment +(comment) @comment @spell (pattern) @string.special (pattern_multi) @string.regex (filename) @string |
