bump zsh grammar, fix regex with expansion

regex with expansions will cause error if injected regex grammar used, disallow
This commit is contained in:
George Harker 2025-11-13 13:17:22 -08:00
parent b50774079a
commit 750cfa5762
2 changed files with 2 additions and 1 deletions

View file

@ -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' },

View file

@ -2,6 +2,7 @@
(#set! injection.language "comment"))
((regex) @injection.content
(#not-match? @injection.content "\\$\\{.*\\}")
(#set! injection.language "regex"))
(heredoc_redirect