Add PHP heredoc and nowdoc injections (#4866)

This commit is contained in:
CalebW 2023-05-30 07:34:15 -05:00 committed by Christian Clason
parent 78b54eb7f6
commit 246f4cc20c

View file

@ -1,9 +1,19 @@
((text) @injection.content
(#set! injection.language "html")
(#set! injection.combined))
(#set! injection.language "html")
(#set! injection.combined))
((comment) @injection.content
(#set! injection.language "phpdoc"))
(#set! injection.language "phpdoc"))
(heredoc
(heredoc_body) @injection.content
(heredoc_end) @injection.language
(#downcase! @injection.language))
(nowdoc
(nowdoc_body) @injection.content
(heredoc_end) @injection.language
(#downcase! @injection.language))
;; regex