mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 18:00:07 -04:00
fix(php): heredocs injections & highlights
This commit is contained in:
parent
39f07cd375
commit
d8e625df2d
2 changed files with 20 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue