aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/queries/vim
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 /runtime/queries/vim
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".
Diffstat (limited to 'runtime/queries/vim')
-rw-r--r--runtime/queries/vim/highlights.scm3
1 files changed, 3 insertions, 0 deletions
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)