Skip to content
Merged
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
14 changes: 14 additions & 0 deletions languages/elixir/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,20 @@
(sigil_name) @_sigil_name
(#any-of? @_sigil_name "C" "c" "S" "s")) @string

; Wordlist sigils
(sigil
(sigil_name) @_sigil_name
(quoted_content)? @string
(#any-of? @_sigil_name "W" "w")) @punctuation.bracket

; Wordlist sigils with atom modifier
(sigil
(sigil_name) @_sigil_name
(quoted_content) @string.special.symbol
(sigil_modifiers) @_sigil_modifier
(#eq? @_sigil_modifier "a")
(#any-of? @_sigil_name "W" "w"))

; Regex sigils
(sigil
(sigil_name) @_sigil_name
Expand Down
4 changes: 4 additions & 0 deletions languages/elixir/indents.scm
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
"end" @end)
(anonymous_function
"end" @end)
(sigil
(sigil_name) @_sigil_name
quoted_end: _ @end
(#any-of? @_sigil_name "W" "w"))
] @indent

; These have no end delimiter that can be captured,
Expand Down
Loading