mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 19:46:58 -04:00
feat(bash): add heredoc injection
This commit is contained in:
parent
d8e625df2d
commit
71532e7776
2 changed files with 16 additions and 3 deletions
|
|
@ -1,5 +1,12 @@
|
|||
((comment) @injection.content
|
||||
((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))
|
||||
|
|
|
|||
|
|
@ -2,4 +2,10 @@
|
|||
(#set! injection.language "comment"))
|
||||
|
||||
((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"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue