[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/kotlin-mode b689626987 070/162: handle } else { lines for
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/kotlin-mode b689626987 070/162: handle } else { lines for indentation |
Date: |
Sat, 29 Jan 2022 08:25:24 -0500 (EST) |
branch: elpa/kotlin-mode
commit b689626987aa75d6928f642df894b7b3ea166a63
Author: Gregg Hernandez <gregg@lucidchart.com>
Commit: Gregg Hernandez <gregg@lucidchart.com>
handle } else { lines for indentation
---
kotlin-mode.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/kotlin-mode.el b/kotlin-mode.el
index 61b35cc8d9..50eeed1006 100644
--- a/kotlin-mode.el
+++ b/kotlin-mode.el
@@ -237,12 +237,12 @@
(save-excursion
(while not-indented
(forward-line -1)
- (cond ((looking-at "^[ \t]*}") ; 3.)
- (setq cur-indent (current-indentation))
+ (cond ((looking-at ".*{[ \t]*$") ; 4.)
+ (setq cur-indent (+ (current-indentation)
default-tab-width))
(setq not-indented nil))
- ((looking-at ".*{[ \t]*$") ; 4.)
- (setq cur-indent (+ (current-indentation)
default-tab-width))
+ ((looking-at "^[ \t]*}") ; 3.)
+ (setq cur-indent (current-indentation))
(setq not-indented nil))
((looking-at ".*{.*->[ \t]*$")
- [nongnu] elpa/kotlin-mode 834620e371 025/162: kotlin-mode: Highlight constants, (continued)
- [nongnu] elpa/kotlin-mode 834620e371 025/162: kotlin-mode: Highlight constants, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 25f6524edf 027/162: kotlin-mode: Highlight value bidnings, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 4aabdd99b9 035/162: kotlin-mode: Highlight constructor/initializer blocks, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode fa8f063a1e 082/162: Merge branch 'gregghz-master', ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode c8bbbb4e5a 001/162: initial commit, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode b6bb8de0cf 019/162: kotlin-mode: Define context variables keywords, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 3c9b24eb04 021/162: kotlin-mode: Highlight keywords, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 07908984b1 024/162: kotlin-mode: Define constants keywords, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 6837e4a6b1 026/162: kotlin-mode: Treat `_' as being a valid part of word, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 5415f6e320 028/162: kotlin-mode: Define modifier keywords, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode b689626987 070/162: handle } else { lines for indentation,
ELPA Syncer <=
- [nongnu] elpa/kotlin-mode 37b93116c9 085/162: A couple of corrections to the README., ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode f42a0745dd 089/162: Ignores blank lines when finding indent level, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 6a579f6549 092/162: Require cc-cmds to load the definition of c-indent-line-or-region, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode b2085f5315 100/162: Put key-binding to README, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 666187a086 110/162: Merge pull request #33 from mikegolod/issue-32, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 3b9b51801a 111/162: auto-enable kt mode for kotlin scripts (e.g. for build.gradle.kts), ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode c7f53d4137 124/162: Save point and mark when sending a block to the interpreter, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 002b5dfc21 136/162: Use an older baseline emacs version in travis, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 0786e24d70 142/162: Merge pull request #44 from taku0/propertise-multiline-strings, ELPA Syncer, 2022/01/29
- [nongnu] elpa/kotlin-mode 5898586ac4 146/162: Refactor indentation logic, ELPA Syncer, 2022/01/29