Skip to content

Commit

Permalink
Add HEEx language injection for ~H sigils (#34)
Browse files Browse the repository at this point in the history
* Add HEEx language injection for `~H` sigils

* Update queries/injections.scm

Co-authored-by: Jonatan Kłosko <[email protected]>
  • Loading branch information
connorlay and jonatanklosko authored Apr 18, 2022
1 parent 1dabc1c commit ec1c4ca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions queries/injections.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
; Phoenix HTML template
((sigil
(sigil_name) @_sigil_name
(quoted_content) @injection.content)
(#eq @_sigil_name "H")
(#set! injection.language "heex")
(#set! injection.combined))

0 comments on commit ec1c4ca

Please sign in to comment.