mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
fix(bash): fix injections
This commit is contained in:
parent
1ff7985a74
commit
103ecdf758
1 changed files with 9 additions and 7 deletions
|
|
@ -2,10 +2,12 @@
|
||||||
(#set! injection.language "comment"))
|
(#set! injection.language "comment"))
|
||||||
|
|
||||||
((regex) @injection.content
|
((regex) @injection.content
|
||||||
|
(#set! injection.language "regex"))
|
||||||
|
|
||||||
((redirected_statement
|
((heredoc_redirect
|
||||||
(heredoc_redirect
|
[
|
||||||
(heredoc_start) @injection.language))
|
(heredoc_body)
|
||||||
(heredoc_body) @injection.content
|
(simple_heredoc_body)
|
||||||
(#offset! @injection.content 0 0 -1 0)
|
] @injection.content
|
||||||
(#downcase! @injection.language))(#set! injection.language "regex"))
|
(heredoc_end) @injection.language)
|
||||||
|
(#downcase! @injection.language))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue