emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/haskell-ts-mode 4886b37b9a 27/61: Fix comment problem


From: ELPA Syncer
Subject: [nongnu] elpa/haskell-ts-mode 4886b37b9a 27/61: Fix comment problem
Date: Wed, 4 Sep 2024 04:00:28 -0400 (EDT)

branch: elpa/haskell-ts-mode
commit 4886b37b9a00bb57343ee74381fc7f7fd1421664
Author: Pranshu Sharma <pranshusharma366@gmail.com>
Commit: Pranshu Sharma <pranshusharma366@gmail.com>

    Fix comment problem
---
 haskell-ts-mode.el | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/haskell-ts-mode.el b/haskell-ts-mode.el
index 65d3bed6fa..07f8b30506 100644
--- a/haskell-ts-mode.el
+++ b/haskell-ts-mode.el
@@ -201,10 +201,9 @@
   ;; Indent 
   (setq-local treesit-simple-indent-rules haskell-ts-indent-rules)
   ;; Misc
-  (setq-local comment-start "{- ")
-  (setq-local comment-end "-}")
-  (setq-local comment-start-skip "\\(?:--+\\|{-+\\) *")
-  (setq-local comment-end-skip "[ \t]*--+}")
+  (setq-local comment-start "-- ")
+  (setq-local comment-use-syntax nil)
+  (setq-local comment-start-skip "\\(?: \\|^\\)-+")
   (setq-local indent-tabs-mode nil)
   (setq-local electric-pair-pairs
              (list (cons ?` ?`) (cons ?( ?)) (cons ?{ ?}) (cons ?" ?") (cons 
?[ ?])))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]