mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-23 18:06:18 +04:00
4836bb38d3
HEEx is a templating engine on top of Elixir's EEx templating language specific to HTML that is included in Phoenix.LiveView (though I think the plan is to eventually include it in base Phoenix). It's a superset of EEx with some additional features like components and slots. The injections don't work perfectly because the Elixir grammar is newline sensitive (the _terminator rule). See https://github.com/elixir-lang/tree-sitter-elixir/issues/24 for more information.
17 lines
418 B
Scheme
17 lines
418 B
Scheme
((comment) @injection.content
|
|
(#set! injection.language "comment"))
|
|
|
|
((sigil
|
|
(sigil_name) @_sigil_name
|
|
(quoted_content) @injection.content)
|
|
(#match? @_sigil_name "^(r|R)$")
|
|
(#set! injection.language "regex")
|
|
(#set! injection.combined))
|
|
|
|
((sigil
|
|
(sigil_name) @_sigil_name
|
|
(quoted_content) @injection.content)
|
|
(#match? @_sigil_name "^(h|H)$")
|
|
(#set! injection.language "heex")
|
|
(#set! injection.combined))
|