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