diff options
author | Jeremy Cowgar <jeremy@cowgar.com> | 2023-02-23 17:30:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-23 17:30:42 -0500 |
commit | b08aa476fee15a8bcf3e3b5c9780236ab6a52586 (patch) | |
tree | f6d092f54162878fb37c1a0d64be8100441ab06c | |
parent | 1f87c2a8f1eb9c28d9fdff7da5f8992dcc52d94c (diff) | |
download | lite-xl-plugins-b08aa476fee15a8bcf3e3b5c9780236ab6a52586.tar.gz lite-xl-plugins-b08aa476fee15a8bcf3e3b5c9780236ab6a52586.zip |
Add heredoc sigil and heex file support for Elixir (#217)
-rw-r--r-- | manifest.json | 2 | ||||
-rw-r--r-- | plugins/language_elixir.lua | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/manifest.json b/manifest.json index 5285e4a..41c6311 100644 --- a/manifest.json +++ b/manifest.json @@ -439,7 +439,7 @@ }, { "description": "Syntax for the [Elixir](https://elixir-lang.org) programming language", - "version": "0.1", + "version": "0.2", "path": "plugins/language_elixir.lua", "id": "language_elixir", "mod_version": "3" 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" }, |