fix(php): heredocs injections & highlights

This commit is contained in:
ObserverOfTime 2023-08-11 14:33:30 +03:00 committed by Christian Clason
parent 39f07cd375
commit d8e625df2d
2 changed files with 20 additions and 0 deletions

View file

@ -138,6 +138,13 @@
] @string
(escape_sequence) @string.escape
[
(heredoc_start)
(heredoc_end)
] @label
(nowdoc "'" @label)
(boolean) @boolean
(null) @constant.builtin
(integer) @number
@ -271,6 +278,7 @@
"&"
"<<"
">>"
"<<<"
"->"
"?->"

View file

@ -15,6 +15,18 @@
(heredoc_end) @injection.language
(#downcase! @injection.language))
((heredoc
(heredoc_body) @injection.content
(heredoc_end) @injection.language
(#set! injection.include-children)
(#downcase! @injection.language)))
((nowdoc
(nowdoc_body) @injection.content
(heredoc_end) @injection.language
(#set! injection.include-children)
(#downcase! @injection.language)))
;; regex
((function_call_expression