feat(bash): add heredoc injection

This commit is contained in:
ObserverOfTime 2023-08-11 15:24:48 +03:00 committed by Christian Clason
parent d8e625df2d
commit 71532e7776
2 changed files with 16 additions and 3 deletions

View file

@ -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))

View file

@ -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"))