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

@ -5,6 +5,16 @@
((comment) @injection.content ((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 ;; regex
((function_call_expression ((function_call_expression