From c24a67c0e4cd1f7c10ee86c7d7ccbbaae233cbe8 Mon Sep 17 00:00:00 2001 From: Ryan Mehri <52933714+rmehri01@users.noreply.github.com> Date: Wed, 25 Oct 2023 19:39:22 -0700 Subject: [PATCH] Add rust html injection query (#8603) --- runtime/queries/rust/injections.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/runtime/queries/rust/injections.scm b/runtime/queries/rust/injections.scm index b29a5ad70b2b..ae9e587fd468 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")