Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

php: Add syntax highlighting inside heredoc strings (#18368)

Sylvain Brunerie898d48a57497
diff --git a/extensions/php/languages/php/injections.scm b/extensions/php/languages/php/injections.scm
index 3b5cd70064c..122d0b377af 100644
--- a/extensions/php/languages/php/injections.scm
+++ b/extensions/php/languages/php/injections.scm
@@ -5,3 +5,5 @@
((comment) @content
(#match? @content "^/\\*\\*[^*]")
(#set! "language" "phpdoc"))
+
+((heredoc_body) (heredoc_end) @language) @content