aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Harker <george@george-graphics.co.uk>2025-11-13 15:20:34 -0800
committerGitHub <noreply@github.com>2025-11-13 15:20:34 -0800
commit2144e88dacd193cc92a01f622e56feca4a5922f6 (patch)
tree921aa14055c67e2813afe619dc355403d441d6cf
parentfeat(sql): update parser, highlights (#8272) (diff)
downloadnvim-treesitter-2144e88dacd193cc92a01f622e56feca4a5922f6.tar
nvim-treesitter-2144e88dacd193cc92a01f622e56feca4a5922f6.tar.gz
nvim-treesitter-2144e88dacd193cc92a01f622e56feca4a5922f6.tar.bz2
nvim-treesitter-2144e88dacd193cc92a01f622e56feca4a5922f6.tar.lz
nvim-treesitter-2144e88dacd193cc92a01f622e56feca4a5922f6.tar.xz
nvim-treesitter-2144e88dacd193cc92a01f622e56feca4a5922f6.tar.zst
nvim-treesitter-2144e88dacd193cc92a01f622e56feca4a5922f6.zip
feat(zsh): bump parser, disallow injections for regex with expansion
-rw-r--r--lua/nvim-treesitter/parsers.lua2
-rw-r--r--runtime/queries/zsh/injections.scm1
2 files changed, 2 insertions, 1 deletions
diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua
index 2bf3933d6..aeadd60d2 100644
--- a/lua/nvim-treesitter/parsers.lua
+++ b/lua/nvim-treesitter/parsers.lua
@@ -2703,7 +2703,7 @@ return {
},
zsh = {
install_info = {
- revision = 'v0.36.0',
+ revision = 'v0.42.0',
url = 'https://github.com/georgeharker/tree-sitter-zsh',
},
maintainers = { '@georgeharker' },
diff --git a/runtime/queries/zsh/injections.scm b/runtime/queries/zsh/injections.scm
index e1095773b..3e21206ab 100644
--- a/runtime/queries/zsh/injections.scm
+++ b/runtime/queries/zsh/injections.scm
@@ -2,6 +2,7 @@
(#set! injection.language "comment"))
((regex) @injection.content
+ (#not-lua-match? @injection.content "%${.*}")
(#set! injection.language "regex"))
(heredoc_redirect