diff options
Diffstat (limited to 'plugins/language_hs.lua')
-rw-r--r-- | plugins/language_hs.lua | 5 |
1 files changed, 3 insertions, 2 deletions
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" }, |