Skip to content

Commit c22e0b8

Browse files
authored
Injection support for comment parsing languages (#38)
This allows parsing of comments to be done by extensions such as zed-comment for TODO parsing.
1 parent f8dd0b5 commit c22e0b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

languages/elixir/injections.scm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,7 @@
4545
]))
4646
(#match? @_identifier "^(attr|slot)$")
4747
(#set! injection.language "markdown")))
48+
49+
; Support comment parsing languages
50+
((comment) @injection.content
51+
(#set! injection.language "comment"))

0 commit comments

Comments
 (0)