Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions languages/elixir/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@
(quoted_content) @embedded
(#eq? @string.special "H"))

; Hologram HOLO template sigil
(sigil
(sigil_name) @string.special
(quoted_content) @embedded
(#eq? @string.special "HOLO"))

; Function/macro calls (with parentheses)
(call
target: [
Expand Down
7 changes: 7 additions & 0 deletions languages/elixir/injections.scm
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@
(#eq? @_sigil_name "H")
(#set! injection.language "heex"))

; Hologram HOLO template sigil
((sigil
(sigil_name) @_sigil_name
(quoted_content) @injection.content)
(#eq? @_sigil_name "HOLO")
(#set! injection.language "holo"))

; Jason sigils
((sigil
(sigil_name) @_sigil_name
Expand Down
Loading