[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swift-mode c09229a 198/496: Use semantic hanging-p functio
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swift-mode c09229a 198/496: Use semantic hanging-p function instead of custom regex when checking |
Date: |
Sun, 29 Aug 2021 11:33:35 -0400 (EDT) |
branch: elpa/swift-mode
commit c09229ae9106656fb4ac9798a0c300df713d6889
Author: ap4y <lod@pisem.net>
Commit: ap4y <lod@pisem.net>
Use semantic hanging-p function instead of custom regex when checking
for the last token on the line
---
swift-mode.el | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/swift-mode.el b/swift-mode.el
index c2f2150..4640a56 100644
--- a/swift-mode.el
+++ b/swift-mode.el
@@ -321,15 +321,14 @@
;; - dot is followed by newline, or
;; - if dot is a first token on the line
(`(:before . ".")
- (if (or (looking-at "[.][\n]")
+ (if (or (smie-rule-hanging-p)
(smie-rule-bolp))
swift-indent-multiline-statement-offset))
;; Apply swift-indent-multiline-statement-offset if
;; operator is the last symbol on the line
(`(:before . "OP")
- (if (and (looking-at ".[\n]")
- (not (smie-rule-sibling-p)))
+ (if (smie-rule-hanging-p)
swift-indent-multiline-statement-offset))
;; Indent second line of the multi-line class
- [nongnu] elpa/swift-mode dd8f793 133/496: Make multi-line dot statement offset customisable value, (continued)
- [nongnu] elpa/swift-mode dd8f793 133/496: Make multi-line dot statement offset customisable value, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 2d478bf 140/496: Merge pull request #46 from ap4y/multiline_op_statemenets, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode e09694f 158/496: Release 0.3.0, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 9b6f599 146/496: Apply swift-indent-offset to multi-line class definitions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 4286ff9 148/496: Merge pull request #52 from ap4y/fix_47, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 0f57a7d 179/496: Add lexer rule for ":" token., ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 2d0194e 184/496: Correct several indentation cases for class defitinion, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode f8190d6 186/496: Extract function into separate grammar and add return typo to the, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode fb2f48e 187/496: Add rule for assignment expression, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 01bcc35 192/496: Improve grammar for functions and contraint protocols grammar to, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode c09229a 198/496: Use semantic hanging-p function instead of custom regex when checking,
ELPA Syncer <=
- [nongnu] elpa/swift-mode 462ea17e 221/496: Improve closures grammar and add several related indentation rules, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode f42752b 223/496: Respect comments when calculating position of the implicit semicolon, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode b4b56f6 246/496: Merge pull request #99 from uk-ar/fix-indents-around-comma, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode d047843 258/496: Fix token for :, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode ba39552 261/496: Fix test failure on travis, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 1f39b11 288/496: Fix indent for ternary operator, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 4d90ca5 280/496: Merge pull request #110 from lunaryorn/patch-1, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 0cb5e13 303/496: Improve some wording, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode b6f3664 302/496: Update a few URLs, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 9c180cf 315/496: Fix testing error when running the test twice interactively, ELPA Syncer, 2021/08/29