From c24a67c0e4cd1f7c10ee86c7d7ccbbaae233cbe8 Mon Sep 17 00:00:00 2001 From: Ryan Mehri Date: Wed, 25 Oct 2023 19:39:22 -0700 Subject: Add rust html injection query (#8603) --- runtime/queries/rust/injections.scm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'runtime') diff --git a/runtime/queries/rust/injections.scm b/runtime/queries/rust/injections.scm index b29a5ad7..ae9e587f 100644 --- a/runtime/queries/rust/injections.scm +++ b/runtime/queries/rust/injections.scm @@ -1,6 +1,12 @@ ([(line_comment) (block_comment)] @injection.content (#set! injection.language "comment")) +((macro_invocation + macro: (identifier) @_html (#eq? @_html "html") + (token_tree) @injection.content) + (#set! injection.language "html") + (#set! injection.include-children)) + ((macro_invocation (token_tree) @injection.content) (#set! injection.language "rust") -- cgit v1.2.3-70-g09d2