branch: elpa/scala-mode commit cc2db35b55e9344d86555f2dc9f8e650610442ce Author: Heikki Vesalainen <heikkivesalai...@yahoo.com> Commit: Heikki Vesalainen <heikkivesalai...@yahoo.com>
indent case body only if first case statement is on its own line --- scala-mode2-indent.el | 1 + 1 file changed, 1 insertion(+) diff --git a/scala-mode2-indent.el b/scala-mode2-indent.el index d947828..cbaf176 100644 --- a/scala-mode2-indent.el +++ b/scala-mode2-indent.el @@ -618,6 +618,7 @@ anchor for calculating block indent for current point (or point (goto-char (1+ (or (nth 1 (syntax-ppss start)) 0))) (forward-comment (buffer-size)) (and (scala-syntax:looking-at-case-p) + (> (line-number-at-pos) (line-number-at-pos anchor)) (> start (match-beginning 0)))) (+ (* 2 scala-indent:step) lead)) ;; normal block line