[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/dart-mode 84580a5 021/192: Fix else block indentation.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/dart-mode 84580a5 021/192: Fix else block indentation. |
Date: |
Sun, 29 Aug 2021 11:01:42 -0400 (EDT) |
branch: elpa/dart-mode
commit 84580a59505531394f6698bfa316270edcb3acb4
Author: Nathan Weizenbaum <nweiz@google.com>
Commit: Nathan Weizenbaum <nweiz@google.com>
Fix else block indentation.
---
dart-mode.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dart-mode.el b/dart-mode.el
index f76eeec..2dfddfd 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -32,7 +32,6 @@
;; * Multiline strings using """ and ''' are not recognized. They fontify
;; correctly, but only because they look like three strings in a row.
;; * In a map with identifier keys, the first key is fontified like a label.
-;; * else blocks are indented incorrectly.
;; * Optional arguments aren't always fontified correctly.
;; * =>-style methods that span multiple lines can screw up indentation and
;; brace matching.
@@ -197,6 +196,8 @@ SYNTAX-GUESS is the output of `c-guess-basic-syntax'."
;; Both anonymous and named functions have a ")" immediately before
the
;; code block.
(= (char-before) ?\))
+ ;; "else" is the only keyword that comes immediately before a block.
+ (looking-back "\\<else\\>")
;; CC is good at figuring out if we're in a class.
(assq 'inclass syntax-guess))))))
- [nongnu] elpa/dart-mode fc47325 012/192: Fix more keywords., (continued)
- [nongnu] elpa/dart-mode fc47325 012/192: Fix more keywords., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 50cbb65 015/192: Add a license (GPL3)., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 58c9bac 016/192: Add a copyright header., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 44c762d 022/192: More known bugs., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode f50a1cc 037/192: Properly indent after constructors with member lists., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 9be0c64 050/192: Add support for flymake., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 273f8da 053/192: Work around some dart_analzer/Emacs disagreements., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 010f557 055/192: changed (ad-do-it) to ad-do-it, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 6f66034 008/192: Improve indentation., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode a081d12 011/192: Set version to 0.1., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 84580a5 021/192: Fix else block indentation.,
ELPA Syncer <=
- [nongnu] elpa/dart-mode c6478e8 026/192: Add a dart c style., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode ff905a9 056/192: Merge pull request #3 from patefacio/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode f35222d 057/192: Fix an error in the flymake hook., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode c6969ba 061/192: Add some support for the Dart formatter., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode be14d27 029/192: Dart doesn't use . as an identifier op., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode d1d4d88 031/192: Add more known bugs., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode d39043f 032/192: Fix an offset., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 5e9c9b9 034/192: Add a known bug., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode cb7d85d 033/192: Handle member initializers a little better., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 53155c1 036/192: Fix map literal indentation when cc-mode thinks it's a defun., ELPA Syncer, 2021/08/29