on master help sign in
Add rust html injection query (#8603)
c24a67cRyan Mehri
runtime/queries/rust/injections.scm+6
@@ -1,6 +1,12 @@
1([(line_comment) (block_comment)] @injection.content
1([(line_comment) (block_comment)] @injection.content
2 (#set! injection.language "comment"))
2 (#set! injection.language "comment"))
3
3
4+((macro_invocation
5+ macro: (identifier) @_html (#eq? @_html "html")
6+ (token_tree) @injection.content)
7+ (#set! injection.language "html")
8+ (#set! injection.include-children))
9+
4((macro_invocation
10((macro_invocation
5 (token_tree) @injection.content)
11 (token_tree) @injection.content)
6 (#set! injection.language "rust")
12 (#set! injection.language "rust")