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

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

[nongnu] elpa/scala-mode 265dadc 214/217: fix: `//`-comments filled inco


From: ELPA Syncer
Subject: [nongnu] elpa/scala-mode 265dadc 214/217: fix: `//`-comments filled incorrectly (`//` not acting as prefix)
Date: Sun, 29 Aug 2021 11:31:15 -0400 (EDT)

branch: elpa/scala-mode
commit 265dadcba117f37c364112487e35e1a1712e32f3
Author: Keith Pinson <keith.pinson@banno.com>
Commit: Keith Pinson <keith.pinson@banno.com>

    fix: `//`-comments filled incorrectly (`//` not acting as prefix)
    
    This is the same problem for Scala as described
    [here](https://github.com/syl20bnr/spacemacs/issues/11326) for F#.
---
 scala-mode.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scala-mode.el b/scala-mode.el
index 95b5203..fe1bf58 100644
--- a/scala-mode.el
+++ b/scala-mode.el
@@ -115,6 +115,7 @@ When started, runs `scala-mode-hook'.
    'parse-sexp-lookup-properties
    'fill-paragraph-function
    'adaptive-fill-function
+   'adaptive-fill-regexp
    'adaptive-fill-first-line-regexp
    'comment-start
    'comment-end
@@ -150,6 +151,7 @@ When started, runs `scala-mode-hook'.
         paragraph-separate              scala-paragraph:paragraph-separate-re
         fill-paragraph-function         'scala-paragraph:fill-paragraph
         adaptive-fill-function          'scala-paragraph:fill-function
+        adaptive-fill-regexp            "[ \t]*\\(//+[ \t]*\\)*"
         adaptive-fill-first-line-regexp scala-paragraph:fill-first-line-re
         comment-start                   "// "
         comment-end                     ""



reply via email to

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