diff options
author | Ryan Mehri | 2023-10-26 02:39:22 +0000 |
---|---|---|
committer | GitHub | 2023-10-26 02:39:22 +0000 |
commit | c24a67c0e4cd1f7c10ee86c7d7ccbbaae233cbe8 (patch) | |
tree | 977611f1bb2d0532df71c1b97130462d03873ac9 /runtime/queries/rust/injections.scm | |
parent | f6021dd0cdd8cf6795f024e396241cb0af2ca368 (diff) |
Add rust html injection query (#8603)
Diffstat (limited to 'runtime/queries/rust/injections.scm')
-rw-r--r-- | runtime/queries/rust/injections.scm | 6 |
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)) |