[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/kotlin-mode c65c96a51a 086/162: fixes close bracket indent
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/kotlin-mode c65c96a51a 086/162: fixes close bracket indentation |
Date: |
Sat, 29 Jan 2022 08:25:25 -0500 (EST) |
branch: elpa/kotlin-mode
commit c65c96a51a77bd685e87fc6da3530ae07595cda1
Author: Gregg Hernandez <gregg@lucidchart.com>
Commit: Gregg Hernandez <gregg@lucidchart.com>
fixes close bracket indentation
---
kotlin-mode.el | 4 +++-
test/sample.kt | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/kotlin-mode.el b/kotlin-mode.el
index 8ad2f6d9af..4f67c027b3 100644
--- a/kotlin-mode.el
+++ b/kotlin-mode.el
@@ -244,9 +244,11 @@
(if (< cur-indent 0)
(setq cur-indent 0))))
- ((looking-at "^[ \t]*}")
+ ((looking-at "^[ \t]*}")
(save-excursion
(forward-line -1)
+ (while (and (looking-at "^[ \t]*\\.") (not (bobp)))
+ (forward-line -1))
(setq cur-indent (- (current-indentation) kotlin-tab-width)))
(if (< cur-indent 0)
(setq cur-indent 0)))
diff --git a/test/sample.kt b/test/sample.kt
index b7bf044c76..1768f0142e 100644
--- a/test/sample.kt
+++ b/test/sample.kt
@@ -113,7 +113,7 @@ fun f() {
things.f()
.g()
.h()
- }
+}
data class Customer(val name: String, val email: String)
val positives = list.filter { x -> x > 0 }
- [nongnu] elpa/kotlin-mode 42fa1402a1 150/162: Merge pull request #49 from taku0/fix-warnings, (continued)
- [nongnu] elpa/kotlin-mode 42fa1402a1 150/162: Merge pull request #49 from taku0/fix-warnings, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 0e4bafb31d 156/162: Merge pull request #57 from taku0/fix-backquote, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 3b10a6a97f 030/162: kotlin-mode: Highlight modifier, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 34947b6b35 045/162: Added 'data class' as a keyword, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode b2c51ab7ba 057/162: Merge pull request #2 from gergoerdi/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode e45a8f73e7 061/162: Declare dependency on Emacs 24.3, for setq-local, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode a02410bc5d 067/162: adds better indentation support for kotlin, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 80f51689bf 074/162: add readme, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 865e55fb4b 072/162: Merge pull request #2 from syohex/fix-package, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode c35ef85b0a 079/162: Merge pull request #2 from rexim/package-improvements, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode c65c96a51a 086/162: fixes close bracket indentation,
ELPA Syncer <=
- [nongnu] elpa/kotlin-mode e5ee4c4bd2 094/162: Merge pull request #20 from Thrip/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 6d679ed0da 097/162: Treat use of make as redundant, assume people will use 'cask exec ert-runner' to run the tests., ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode eb7183e47b 101/162: Merge pull request #25 from tninja/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 0e542ae2f7 114/162: Merge pull request #37 from cjfuller/fix-star-projected-types, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 2467eceee3 118/162: Properly indent multi-line comment blocks, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 3c48b34e0d 127/162: Delete unused function, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 1f57bb5a92 135/162: Fix test runner in .travis.yml, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 96b37d211c 139/162: Merge pull request #45 from taku0/add_backup_to_gitignore, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode d9d77ed459 069/162: indentation logic handling lambdas, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 82db4dce0c 077/162: basic indentation test, ELPA Syncer, 2022/01/29