Closes #9656. Continuation of #9654, but with the addition of backwards compatibility for the existing captures. Release Notes: - Improved Tree-sitter support with added compatibility for standard injections captures --------- Co-authored-by: Finn Evers <finn.evers@outlook.de>
10 lines
278 B
Scheme
10 lines
278 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
|