Skip to content

Commit

Permalink
Add rust html injection query (helix-editor#8603)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmehri01 authored and dgkf committed Jan 30, 2024
1 parent a32277e commit b484163
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")
Expand Down

0 comments on commit b484163

Please sign in to comment.