mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -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
|
] @string
|
||||||
(escape_sequence) @string.escape
|
(escape_sequence) @string.escape
|
||||||
|
|
||||||
|
[
|
||||||
|
(heredoc_start)
|
||||||
|
(heredoc_end)
|
||||||
|
] @label
|
||||||
|
|
||||||
|
(nowdoc "'" @label)
|
||||||
|
|
||||||
(boolean) @boolean
|
(boolean) @boolean
|
||||||
(null) @constant.builtin
|
(null) @constant.builtin
|
||||||
(integer) @number
|
(integer) @number
|
||||||
|
|
@ -271,6 +278,7 @@
|
||||||
"&"
|
"&"
|
||||||
"<<"
|
"<<"
|
||||||
">>"
|
">>"
|
||||||
|
"<<<"
|
||||||
|
|
||||||
"->"
|
"->"
|
||||||
"?->"
|
"?->"
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,18 @@
|
||||||
(heredoc_end) @injection.language
|
(heredoc_end) @injection.language
|
||||||
(#downcase! @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
|
;; regex
|
||||||
|
|
||||||
((function_call_expression
|
((function_call_expression
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue