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 authored and GitHub committed 2025-11-08 10:34:53 +02:00
1 parent 807ac91970
commit b4d82f8166
4 files changed
+11 -1

No files matched your search

+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