From 20dcbaaaf8801163aca8592866086b552bc93f29 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sun, 17 Mar 2024 13:11:22 +0100 Subject: feat(treesitter): update Vim parser and queries to v0.4.0 --- runtime/queries/vim/highlights.scm | 2 ++ runtime/queries/vim/injections.scm | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'runtime/queries/vim') diff --git a/runtime/queries/vim/highlights.scm b/runtime/queries/vim/highlights.scm index 54832ffa56..cc51282a71 100644 --- a/runtime/queries/vim/highlights.scm +++ b/runtime/queries/vim/highlights.scm @@ -132,6 +132,8 @@ (map_statement cmd: _ @keyword) +(keycode) @character.special + (command_name) @function.macro ; Filetype command diff --git a/runtime/queries/vim/injections.scm b/runtime/queries/vim/injections.scm index 16ec57ca99..5feb832ec4 100644 --- a/runtime/queries/vim/injections.scm +++ b/runtime/queries/vim/injections.scm @@ -28,5 +28,7 @@ ((set_item option: (option_name) @_option value: (set_value) @injection.content) - (#any-of? @_option "includeexpr" "inex" "printexpr" "pexpr" "formatexpr" "fex" "indentexpr" "inde" "foldtext" "fdt" "foldexpr" "fde" "diffexpr" "dex" "patchexpr" "pex" "charconvert" "ccv") + (#any-of? @_option + "includeexpr" "inex" "printexpr" "pexpr" "formatexpr" "fex" "indentexpr" "inde" "foldtext" "fdt" + "foldexpr" "fde" "diffexpr" "dex" "patchexpr" "pex" "charconvert" "ccv") (#set! injection.language "vim")) -- cgit From 39a0e6bf3c04f26cc2a43993fd63d94039b7262d Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Fri, 5 Apr 2024 18:06:24 +0200 Subject: fix(treesitter): update parsers and queries --- runtime/queries/vim/highlights.scm | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'runtime/queries/vim') diff --git a/runtime/queries/vim/highlights.scm b/runtime/queries/vim/highlights.scm index cc51282a71..2950278f9f 100644 --- a/runtime/queries/vim/highlights.scm +++ b/runtime/queries/vim/highlights.scm @@ -42,9 +42,8 @@ function: (identifier) @function.call) (call_expression - function: - (scoped_identifier - (identifier) @function.call)) + function: (scoped_identifier + (identifier) @function.call)) (parameters (identifier) @variable.parameter) @@ -206,10 +205,9 @@ (command_attribute name: _ @property - val: - (behavior - name: _ @constant - val: (identifier)? @function)?) + val: (behavior + name: _ @constant + val: (identifier)? @function)?) ; Edit command (plus_plus_opt -- cgit From 3d4eb9d544cbbe39544586890b5de83a48de3680 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sun, 5 May 2024 12:57:36 +0200 Subject: fix(treesitter): update queries --- runtime/queries/vim/highlights.scm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'runtime/queries/vim') diff --git a/runtime/queries/vim/highlights.scm b/runtime/queries/vim/highlights.scm index 2950278f9f..14e5a8128f 100644 --- a/runtime/queries/vim/highlights.scm +++ b/runtime/queries/vim/highlights.scm @@ -126,6 +126,7 @@ "view" "eval" "sign" + "abort" ] @keyword (map_statement @@ -277,8 +278,6 @@ "/" "%" ".." - "is" - "isnot" "==" "!=" ">" @@ -297,9 +296,15 @@ "..=" "<<" "=<<" + "->" (match_case) ] @operator +[ + "is" + "isnot" +] @keyword.operator + ; Some characters have different meanings based on the context (unary_operation "!" @operator) -- cgit