branch: elpa/scala-mode
commit 6966328dbfcbd1dfb166ff46e5deb9a68379cdf1
Merge: b85fa5e 265dadc
Author: Heikki Vesalainen <[email protected]>
Commit: GitHub <[email protected]>
Merge pull request #168 from Kazark/slash-slash
fix: `//`-comments filled incorrectly (`//` not acting as prefix)
---
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 ""