aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorkramo <93832451+kra-mo@users.noreply.github.com>2024-02-01 20:29:19 +0100
committerGitHub <noreply@github.com>2024-02-01 20:29:19 +0100
commit66a42c3e87c9b2c8395af232572c5fd0513e86d6 (patch)
treed1a6c457c9bcf990630547b34363cb71b74c9605 /plugins
parentf3efbe86a457786afb5cb9993772cec2fc8e8815 (diff)
downloadlite-xl-plugins-66a42c3e87c9b2c8395af232572c5fd0513e86d6.tar.gz
lite-xl-plugins-66a42c3e87c9b2c8395af232572c5fd0513e86d6.zip
Fix Haskell comments, add block_comment (#358)
* Fix Haskell comments, add block_comment `-` Was incorrectly escaped before * Update Haskell comment pattern Co-authored-by: Guldoman <giulio.lettieri@gmail.com> --------- Co-authored-by: Guldoman <giulio.lettieri@gmail.com>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/language_hs.lua5
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" },