From 4400990e7362e2769bb1ff96895f623deb0380fa Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Mon, 7 Jul 2025 12:17:33 +0200 Subject: feat(vim): highlight "trim" in script heredocs Allow the optional "trim", as documented in ":help :lua-heredoc". --- lua/nvim-treesitter/parsers.lua | 2 +- runtime/queries/vim/highlights.scm | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index cf9368840..c25daedaa 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -2499,7 +2499,7 @@ return { }, vim = { install_info = { - revision = 'ccc312e878aa84f32d180b8528a3585c7b86a545', + revision = 'a93e834bea0975ec0ccb3f6d18540e9bd8170a4d', url = 'https://github.com/tree-sitter-grammars/tree-sitter-vim', }, maintainers = { '@clason' }, diff --git a/runtime/queries/vim/highlights.scm b/runtime/queries/vim/highlights.scm index 20a044a60..c35986fa3 100644 --- a/runtime/queries/vim/highlights.scm +++ b/runtime/queries/vim/highlights.scm @@ -253,6 +253,9 @@ (heredoc (parameter) @keyword) +(script + (parameter) @keyword) + [ (marker_definition) (endmarker) -- cgit v1.2.3-70-g09d2