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

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

[nongnu] elpa/scala-mode 9476d4c 018/217: Fixes #3: alignment of else in


From: ELPA Syncer
Subject: [nongnu] elpa/scala-mode 9476d4c 018/217: Fixes #3: alignment of else inside parens
Date: Sun, 29 Aug 2021 11:30:36 -0400 (EDT)

branch: elpa/scala-mode
commit 9476d4cbdc094cb728afda310a9a21b39fdecfed
Author: Heikki Vesalainen <heikkivesalainen@yahoo.com>
Commit: Heikki Vesalainen <heikkivesalainen@yahoo.com>

    Fixes #3: alignment of else inside parens
---
 scala-mode-indent.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scala-mode-indent.el b/scala-mode-indent.el
index 8e617c1..c0e2512 100644
--- a/scala-mode-indent.el
+++ b/scala-mode-indent.el
@@ -22,7 +22,7 @@ indentation will be one or two steps depending on context."
 (defconst scala-indent:keywords-only-strategy 3
   "A strategy used internally by indent engine")
 
-(defcustom scala-indent:default-run-on-strategy 0
+(defcustom scala-indent:default-run-on-strategy 2
   "What strategy to use for detecting run-on lines, i.e. lines
 that continue a statement from the previous line. Possible values
 are: 
@@ -598,10 +598,10 @@ cannot be determined."
   (or (scala-indent:apply-indent-rules
        `((scala-indent:goto-open-parentheses-anchor 
scala-indent:resolve-open-parentheses-step)
          (scala-indent:goto-for-enumerators-anchor 0)
+         (scala-indent:goto-special-align-anchor 0)
          (scala-indent:goto-run-on-anchor scala-indent:resolve-run-on-step)
          (scala-indent:goto-list-anchor 0)
          (scala-indent:goto-body-anchor scala-indent:resolve-body-step)
-         (scala-indent:goto-special-align-anchor 0)
          (scala-indent:goto-block-anchor scala-indent:resolve-block-step)
      )
        point)



reply via email to

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