on master help sign in
Add rust html injection query (#8603)
commitc24a67c0e4cd1f7c10ee86c7d7ccbbaae233cbe8 authorRyan Mehri <52933714+rmehri01@users.noreply.github.com> dateWed 25 Oct 2023, 19:39 (3 years ago) parentf6021dd
1 file changed+6
runtime/queries/rust/injections.scm+6
runtime/queries/rust/injections.scm+6
@@ -1,6 +1,12 @@
11([(line_comment) (block_comment)] @injection.content
22 (#set! injection.language "comment"))
33
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+
410((macro_invocation
511 (token_tree) @injection.content)
612 (#set! injection.language "rust")