Skip to content

Commit e5a1f9a

Browse files
committed
queries: Inject markdown into Rust doc comments
1 parent 8695596 commit e5a1f9a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

runtime/queries/rust/injections.scm

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
([(line_comment) (block_comment)] @injection.content
1+
([(line_comment !doc) (block_comment !doc)] @injection.content
22
(#set! injection.language "comment"))
33

4+
((doc_comment) @injection.content
5+
(#set! injection.language "markdown")
6+
(#set! injection.combined))
7+
48
((macro_invocation
59
macro:
610
[

0 commit comments

Comments
 (0)