diff options
-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" }, |