Skip to content

Commit e60a61f

Browse files
authored
languages: Add comment injections for Rust (#39714)
This PR adds comment injections for Rust. Release Notes: - Rust: Added comment injections.
1 parent b8a6180 commit e60a61f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/languages/src/rust/injections.scm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
((line_comment) @injection.content
2+
(#set! injection.language "comment"))
3+
14
(macro_invocation
25
macro: (identifier) @_macro_name
36
(#not-any-of? @_macro_name "view" "html")

0 commit comments

Comments
 (0)