branch: elpa/kotlin-mode commit 60ebf567ec1bcd56a40594d04ac2b866aa6935a2 Merge: f8b7b3648e 4566a988b0 Author: Gregg Hernandez <greggory...@gmail.com> Commit: GitHub <nore...@github.com>
Merge pull request #66 from ted-tanner/master Properly indent 2-line for and while loops without brackets --- kotlin-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kotlin-mode.el b/kotlin-mode.el index 184538fc22..c5845bbfd7 100644 --- a/kotlin-mode.el +++ b/kotlin-mode.el @@ -368,7 +368,7 @@ (defun kotlin-mode--line-continuation() "Return whether this line continues a statement in the previous line" (or - (and (kotlin-mode--prev-line-begins "\\(if\\|else\\)[ \t]*") + (and (kotlin-mode--prev-line-begins "\\(if\\|else\\|for\\|while\\)[ \t]*") (not (kotlin-mode--prev-line-ends "{.*"))) (or (kotlin-mode--line-begins "\\([.=:]\\|->\\|\\(\\(private\\|public\\|protected\\|internal\\)[ \t]*\\)?[sg]et\\b\\)")