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 mtoohey31 committed Jun 2, 2024
1 parent 6b2ead0 commit 35a3688
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 35a3688

Please sign in to comment.