Skip to content

Commit

Permalink
Add rust html injection query (#8603)
Browse files Browse the repository at this point in the history
rmehri01 authored Oct 26, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent f6021dd commit c24a67c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions runtime/queries/rust/injections.scm
Original file line number Diff line number Diff line change
@@ -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")

0 comments on commit c24a67c

Please sign in to comment.