Skip to content

Commit 81e126c

Browse files
Add injections for the comments extension (#66)
This adds an injection for PHP comments to allow the new "comments" extension to work: ![Screenshot 2025-10-08 at 10 16 10 AM](https://github.com/user-attachments/assets/9e33bb82-82f3-4aec-95a3-9473a5d75544) Ref: https://github.com/thedadams/zed-comment Ref: zed-industries/zed@e60a61f
1 parent 6cef7ba commit 81e126c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

languages/php/injections.scm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
(#match? @injection.content "^/\\*\\*[^*]")
77
(#set! injection.language "phpdoc"))
88

9+
((comment) @injection.content
10+
(#set! injection.language "comment"))
11+
912
((heredoc_body) (heredoc_end) @injection.language) @injection.content
1013

1114
((nowdoc_body) (heredoc_end) @injection.language) @injection.content

0 commit comments

Comments
 (0)