aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_elixir.lua
diff options
context:
space:
mode:
authorJeremy Cowgar <jeremy@cowgar.com>2023-02-23 17:30:42 -0500
committerGitHub <noreply@github.com>2023-02-23 17:30:42 -0500
commitb08aa476fee15a8bcf3e3b5c9780236ab6a52586 (patch)
treef6d092f54162878fb37c1a0d64be8100441ab06c /plugins/language_elixir.lua
parent1f87c2a8f1eb9c28d9fdff7da5f8992dcc52d94c (diff)
downloadlite-xl-plugins-b08aa476fee15a8bcf3e3b5c9780236ab6a52586.tar.gz
lite-xl-plugins-b08aa476fee15a8bcf3e3b5c9780236ab6a52586.zip
Add heredoc sigil and heex file support for Elixir (#217)
Diffstat (limited to 'plugins/language_elixir.lua')
-rw-r--r--plugins/language_elixir.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/language_elixir.lua b/plugins/language_elixir.lua
index 8f47770..49da053 100644
--- a/plugins/language_elixir.lua
+++ b/plugins/language_elixir.lua
@@ -11,6 +11,7 @@ syntax.add {
{ pattern = { '"""', '"""', '\\' }, type = "string" },
{ pattern = { '"', '"', '\\' }, type = "string" },
{ pattern = { "'", "'", '\\' }, type = "string" },
+ { pattern = { '~%a"""', '"""' }, type = "string" },
{ pattern = { '~%a[/"|\'%(%[%{<]', '[/"|\'%)%]%}>]', '\\' }, type = "string"},
{ pattern = "-?0x%x+", type = "number" },
{ pattern = "-?%d+[%d%.eE]*f?", type = "number" },
@@ -74,7 +75,7 @@ syntax.add {
}
syntax.add {
- files = { "%.l?eex$" },
+ files = { "%.l?eex$", "%.h?eex$" },
patterns = {
{ pattern = { "<!%-%-", "%-%->" }, type = "comment" },
{ pattern = { '%f[^>][^<]', '%f[<]' }, type = "normal" },