Add comment injection support to remaining languages (#41710)

Release Notes:

- Added support for comment language injections for remaining built-in
languages and multi-line support for Rust
This commit is contained in:
Donnie Adams
2025-11-08 10:34:53 +02:00
committed by GitHub
parent c241eadbc3
commit d187cbb188
4 changed files with 11 additions and 1 deletions
+3
View File
@@ -0,0 +1,3 @@
((comment) @injection.content
(#set! injection.language "comment")
)
+2
View File
@@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))
@@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))
+4 -1
View File
@@ -1,4 +1,7 @@
((line_comment) @injection.content
([
(line_comment)
(block_comment)
] @injection.content
(#set! injection.language "comment"))
(macro_invocation