We already have heredoc injection support, so this just extends it to also cover [nowdoc](https://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.nowdoc).
12 lines
348 B
Scheme
12 lines
348 B
Scheme
((text) @injection.content
|
|
(#set! injection.language "html")
|
|
(#set! injection.combined))
|
|
|
|
((comment) @injection.content
|
|
(#match? @injection.content "^/\\*\\*[^*]")
|
|
(#set! injection.language "phpdoc"))
|
|
|
|
((heredoc_body) (heredoc_end) @injection.language) @injection.content
|
|
|
|
((nowdoc_body) (heredoc_end) @injection.language) @injection.content
|