aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2025-07-07 12:17:33 +0200
committerChristian Clason <ch.clason+github@icloud.com>2025-07-07 12:22:10 +0200
commit4400990e7362e2769bb1ff96895f623deb0380fa (patch)
tree23a51f4fe75094592945daabcbcf623937b8da51
parentfeat(latex)!: update parser and queries (diff)
downloadnvim-treesitter-4400990e7362e2769bb1ff96895f623deb0380fa.tar
nvim-treesitter-4400990e7362e2769bb1ff96895f623deb0380fa.tar.gz
nvim-treesitter-4400990e7362e2769bb1ff96895f623deb0380fa.tar.bz2
nvim-treesitter-4400990e7362e2769bb1ff96895f623deb0380fa.tar.lz
nvim-treesitter-4400990e7362e2769bb1ff96895f623deb0380fa.tar.xz
nvim-treesitter-4400990e7362e2769bb1ff96895f623deb0380fa.tar.zst
nvim-treesitter-4400990e7362e2769bb1ff96895f623deb0380fa.zip
feat(vim): highlight "trim" in script heredocs
Allow the optional "trim", as documented in ":help :lua-heredoc".
-rw-r--r--lua/nvim-treesitter/parsers.lua2
-rw-r--r--runtime/queries/vim/highlights.scm3
2 files changed, 4 insertions, 1 deletions
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)