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

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

[nongnu] elpa/kotlin-mode d9d77ed459 069/162: indentation logic handling


From: ELPA Syncer
Subject: [nongnu] elpa/kotlin-mode d9d77ed459 069/162: indentation logic handling lambdas
Date: Sat, 29 Jan 2022 08:25:23 -0500 (EST)

branch: elpa/kotlin-mode
commit d9d77ed459f2616e4b947e84e44299b20b1252de
Author: Gregg Hernandez <gregg@lucidchart.com>
Commit: Gregg Hernandez <gregg@lucidchart.com>

    indentation logic handling lambdas
---
 kotlin-mode.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/kotlin-mode.el b/kotlin-mode.el
index 6dcaadce9b..61b35cc8d9 100644
--- a/kotlin-mode.el
+++ b/kotlin-mode.el
@@ -245,6 +245,10 @@
                         (setq cur-indent (+ (current-indentation) 
default-tab-width))
                         (setq not-indented nil))
 
+                       ((looking-at ".*{.*->[ \t]*$")
+                        (setq cur-indent (+ (current-indentation) 
default-tab-width))
+                        (setq not-indented nil))
+
                        ((looking-at ".*([ \t]*$")
                         (setq cur-indent (+ (current-indentation) (* 2 
default-tab-width)))
                         (setq not-indented nil))



reply via email to

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