From 57ed8400b88ce1bed947946e51931ebd42c34081 Mon Sep 17 00:00:00 2001 From: Clayton Carter Date: Wed, 8 Oct 2025 10:13:51 -0400 Subject: [PATCH] feat(injections): add injections for the comments extension Ref: https://github.com/thedadams/zed-comment Ref: https://github.com/zed-industries/zed/commit/e60a61f7e76d1c4c2ddc3bd230cf9c7d78bc0593 --- languages/php/injections.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/languages/php/injections.scm b/languages/php/injections.scm index 657145c..c5f63f7 100644 --- a/languages/php/injections.scm +++ b/languages/php/injections.scm @@ -6,6 +6,9 @@ (#match? @injection.content "^/\\*\\*[^*]") (#set! injection.language "phpdoc")) +((comment) @injection.content + (#set! injection.language "comment")) + ((heredoc_body) (heredoc_end) @injection.language) @injection.content ((nowdoc_body) (heredoc_end) @injection.language) @injection.content