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

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

[nongnu] elpa/kotlin-mode 4566a988b0 1/2: Properly indent 2-line for and


From: ELPA Syncer
Subject: [nongnu] elpa/kotlin-mode 4566a988b0 1/2: Properly indent 2-line for and while loops without brackets
Date: Wed, 18 May 2022 13:58:36 -0400 (EDT)

branch: elpa/kotlin-mode
commit 4566a988b05b991067b01e6e056308770829dd6a
Author: Tanner Davies <tanner.e.davies@gmail.com>
Commit: Tanner Davies <tanner.e.davies@gmail.com>

    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\\)")



reply via email to

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