aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifest.json2
-rw-r--r--plugins/language_hs.lua5
2 files changed, 4 insertions, 3 deletions
diff --git a/manifest.json b/manifest.json
index 1a229f9..f4d5c32 100644
--- a/manifest.json
+++ b/manifest.json
@@ -826,7 +826,7 @@
},
{
"description": "Syntax for the [Haskell](https://www.haskell.org/) programming language",
- "version": "0.1",
+ "version": "0.2",
"path": "plugins/language_hs.lua",
"id": "language_hs",
"mod_version": "3",
diff --git a/plugins/language_hs.lua b/plugins/language_hs.lua
index 4271210..39dbc7a 100644
--- a/plugins/language_hs.lua
+++ b/plugins/language_hs.lua
@@ -4,9 +4,10 @@ local syntax = require "core.syntax"
syntax.add {
name = "Haskell",
files = { "%.hs$" },
- comment = "%-%-",
+ comment = "--",
+ block_comment = {"{-", "-}"},
patterns = {
- { pattern = {"%-%-", "\n"}, type = "comment" },
+ { pattern = "%-%-.*", type = "comment" },
{ pattern = { "{%-", "%-}" }, type = "comment" },
{ pattern = { '"', '"', '\\' }, type = "string" },
{ pattern = { "'", "'", '\\' }, type = "string" },