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

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

[nongnu] elpa/haskell-mode b1505b727b 10/24: Merge pull request #1645 fr


From: ELPA Syncer
Subject: [nongnu] elpa/haskell-mode b1505b727b 10/24: Merge pull request #1645 from juliapath/pragmas-are-no-paragraphs
Date: Tue, 1 Nov 2022 22:58:52 -0400 (EDT)

branch: elpa/haskell-mode
commit b1505b727b1fb8ae352e59dc90ec6dd05369ce32
Merge: 5750f74d89 705d04d9fb
Author: Steve Purcell <steve@sanityinc.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #1645 from juliapath/pragmas-are-no-paragraphs
    
    Make {-# and #-} not be paragraph boundaries
---
 haskell-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/haskell-mode.el b/haskell-mode.el
index c20e66ab28..21cf4d282b 100644
--- a/haskell-mode.el
+++ b/haskell-mode.el
@@ -799,8 +799,8 @@ Minor modes that work well with `haskell-mode':
     (error "haskell-mode requires at least Emacs 25.1"))
 
   ;; paragraph-{start,separate} should treat comments as paragraphs as well.
-  (setq-local paragraph-start (concat " *{-\\| *-- |\\|" page-delimiter))
-  (setq-local paragraph-separate (concat " *$\\| *\\({-\\|-}\\) *$\\|" 
page-delimiter))
+  (setq-local paragraph-start (concat " *{-\\([^#]\\|$\\)\\| *-- |\\|" 
page-delimiter))
+  (setq-local paragraph-separate (concat " *$\\| 
*\\({-\\([^#]\\|$\\)\\|\\([^#]\\|^\\)-}\\) *$\\|" page-delimiter))
   (setq-local fill-paragraph-function 'haskell-fill-paragraph)
   ;; (setq-local adaptive-fill-function 'haskell-adaptive-fill)
   (setq-local comment-start "--")



reply via email to

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