Add HEEx language injection for `~H` sigils (#34)

* Add HEEx language injection for `~H` sigils

* Update queries/injections.scm

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
This commit is contained in:
Clay 2022-04-18 14:16:26 -07:00 committed by GitHub
parent 1dabc1c790
commit ec1c4cac1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

7
queries/injections.scm Normal file
View File

@ -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))