Skip to content

Commit 4921a6f

Browse files
Add comment language injection (#43)
Addresses thedadams/zed-comment#14 --------- Signed-off-by: Donnie Adams <donnie@thedadams.com> Co-authored-by: MrSubidubi <dev@bahn.sh>
1 parent 5c13555 commit 4921a6f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

languages/swift/injections.scm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,11 @@
22

33
((regex_literal) @injection.content
44
(#set! injection.language "regex"))
5+
6+
(
7+
[
8+
(comment)
9+
(multiline_comment)
10+
] @injection.content
11+
(#set! injection.language "comment")
12+
)

0 commit comments

Comments
 (0)