From e58b7f9950c4aa875ea1502ace042330ee63a417 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Wed, 7 Sep 2022 09:30:00 +0200 Subject: feat(viml): bump parser and queries --- lockfile.json | 2 +- queries/vim/highlights.scm | 18 +++++++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/lockfile.json b/lockfile.json index 27e9a1179..061679f17 100644 --- a/lockfile.json +++ b/lockfile.json @@ -366,7 +366,7 @@ "revision": "8f6b1f357d1231c420404b5f7a368a73c25adfa2" }, "vim": { - "revision": "31ced69f19b65cb92a3f30e71b0b76216d8aeea3" + "revision": "f8c5c653f9392ec9daad6a513374486cee66bb54" }, "vue": { "revision": "91fe2754796cd8fba5f229505a23fa08f3546c06" 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 @@ "" ] @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 -- cgit v1.2.3-70-g09d2