aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries
diff options
context:
space:
mode:
authorRyan Mehri2023-10-26 02:39:22 +0000
committerGitHub2023-10-26 02:39:22 +0000
commitc24a67c0e4cd1f7c10ee86c7d7ccbbaae233cbe8 (patch)
tree977611f1bb2d0532df71c1b97130462d03873ac9 /runtime/queries
parentf6021dd0cdd8cf6795f024e396241cb0af2ca368 (diff)
Add rust html injection query (#8603)
Diffstat (limited to 'runtime/queries')
-rw-r--r--runtime/queries/rust/injections.scm6
1 files changed, 6 insertions, 0 deletions
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
@@ -2,6 +2,12 @@
(#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")
(#set! injection.include-children))