languages: Add comment injections for Rust (#39714)

This PR adds comment injections for Rust.

Release Notes:

- Rust: Added comment injections.
This commit is contained in:
Marshall Bowers
2025-10-07 20:26:05 +00:00
committed by GitHub
parent b8a6180b82
commit e60a61f7e7
+3
View File
@@ -1,3 +1,6 @@
((line_comment) @injection.content
(#set! injection.language "comment"))
(macro_invocation
macro: (identifier) @_macro_name
(#not-any-of? @_macro_name "view" "html")