[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/dart-mode c523992 004/192: Handle map indentation with ide
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/dart-mode c523992 004/192: Handle map indentation with identifiers. |
Date: |
Sun, 29 Aug 2021 11:01:39 -0400 (EDT) |
branch: elpa/dart-mode
commit c52399220a98bf47484c6567bbc80bd71d31df36
Author: Nathan Weizenbaum <nweiz@google.com>
Commit: Nathan Weizenbaum <nweiz@google.com>
Handle map indentation with identifiers.
---
dart-mode.el | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/dart-mode.el b/dart-mode.el
index bd489d7..9711eb7 100644
--- a/dart-mode.el
+++ b/dart-mode.el
@@ -110,6 +110,15 @@
((arglist-cont arglist-cont-nonempty) 'brace-list-entry)
(arglist-close 'brace-list-close))))))
+ ;; Handle indentifier keys in maps
+ (when (eq (caar ad-return-value) 'label)
+ (save-excursion
+ (c-safe
+ (c-backward-comments)
+ (if (= (char-before) ?\{) 'brace-list-intro
+ (backward-up-list)
+ (when (= (char-after) ?\{) 'brace-list-entry)))))
+
(caar ad-return-value))))))
- [nongnu] elpa/dart-mode caa7a19 124/192: Don't error out with revert-buffer, (continued)
- [nongnu] elpa/dart-mode caa7a19 124/192: Don't error out with revert-buffer, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 199709f 148/192: Removes cc-mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode da244c6 144/192: Fixes no such file or directory, dartfmt.exe, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 9db2679 143/192: Fixes invalid file path format on Windows, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 06e2d4b 160/192: Respect font-lock-maximum-decoration, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 3082066 185/192: Don't font lock anchor in a string, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode ad93bc1 165/192: Edit headers, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode f6a1c9a79 171/192: Fix byte-compiling errors and warnings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 1273ccb 191/192: Make changes to list of dart-mode keywords easier to diff, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode a9899a9 182/192: Fontify abstract methods, ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode c523992 004/192: Handle map indentation with identifiers.,
ELPA Syncer <=
- [nongnu] elpa/dart-mode 30f9326 007/192: Make constants better., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 5ce38b7 009/192: Add a couple known bugs., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 64a573f 010/192: Require 'cl when compiling., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode b42c2ca 014/192: Another known bug., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 4d67ba8 017/192: Fix the closing comment., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 1473515 019/192: Bump to version 0.3 for release., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 06c2786 024/192: Bump version to 0.4., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 2410a15 025/192: Fix =>-style method indentation., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 9ee0bf1 028/192: Bump version to 0.5., ELPA Syncer, 2021/08/29
- [nongnu] elpa/dart-mode 67550e5 030/192: Fix indentation for try as well., ELPA Syncer, 2021/08/29