mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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
|
|
@ -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 @@
|
|||
"&"
|
||||
"<<"
|
||||
">>"
|
||||
"<<<"
|
||||
|
||||
"->"
|
||||
"?->"
|
||||
|
|
|
|||
|
|
@ -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