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 16:26:05 -04:00 committed by GitHub
parent b8a6180b82
commit e60a61f7e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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")