mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
feat(zsh): bump parser, disallow injections for regex with expansion
This commit is contained in:
parent
0427eeb385
commit
2144e88dac
2 changed files with 2 additions and 1 deletions
|
|
@ -2703,7 +2703,7 @@ return {
|
||||||
},
|
},
|
||||||
zsh = {
|
zsh = {
|
||||||
install_info = {
|
install_info = {
|
||||||
revision = 'v0.36.0',
|
revision = 'v0.42.0',
|
||||||
url = 'https://github.com/georgeharker/tree-sitter-zsh',
|
url = 'https://github.com/georgeharker/tree-sitter-zsh',
|
||||||
},
|
},
|
||||||
maintainers = { '@georgeharker' },
|
maintainers = { '@georgeharker' },
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
(#set! injection.language "comment"))
|
(#set! injection.language "comment"))
|
||||||
|
|
||||||
((regex) @injection.content
|
((regex) @injection.content
|
||||||
|
(#not-lua-match? @injection.content "%${.*}")
|
||||||
(#set! injection.language "regex"))
|
(#set! injection.language "regex"))
|
||||||
|
|
||||||
(heredoc_redirect
|
(heredoc_redirect
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue