branch: elpa/kotlin-mode
commit d9d77ed459f2616e4b947e84e44299b20b1252de
Author: Gregg Hernandez <[email protected]>
Commit: Gregg Hernandez <[email protected]>

    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