[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swift-mode 42a209c 322/496: Fix indentation of guard
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swift-mode 42a209c 322/496: Fix indentation of guard |
Date: |
Sun, 29 Aug 2021 11:33:59 -0400 (EDT) |
branch: elpa/swift-mode
commit 42a209c7eb60578e991943834cb80b702fe9a87d
Author: taku0 <mxxouy6x3m_github@tatapa.org>
Commit: taku0 <mxxouy6x3m_github@tatapa.org>
Fix indentation of guard
---
swift-mode-indent.el | 3 ++-
test/swift-files/statements.swift | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/swift-mode-indent.el b/swift-mode-indent.el
index 83224c7..6645737 100644
--- a/swift-mode-indent.el
+++ b/swift-mode-indent.el
@@ -700,7 +700,8 @@ This function is also used for close-curly-brace."
(cond
((member
(swift-mode:token:text next-token)
- '("for" "while" "repeat" "switch" "if" "else" "defer" "do" "catch"
+ '("for" "while" "repeat" "switch" "if" "else" "guard"
+ "defer" "do" "catch"
"get" "set" "willSet" "didSet" "func" "init" "subscript"
"enum" "struct" "class" "extension" "prefix" "postfix" "infix"
"precedencegroup"))
diff --git a/test/swift-files/statements.swift
b/test/swift-files/statements.swift
index db63c1a..a7ee80a 100644
--- a/test/swift-files/statements.swift
+++ b/test/swift-files/statements.swift
@@ -479,9 +479,9 @@ guard
)
=
ab else {
- foo() // swift-mode:test:known-bug
foo()
-} // swift-mode:test:known-bug
+ foo()
+}
// Switch statement
- [nongnu] elpa/swift-mode f43317e 290/496: Add MELPA badge in README, (continued)
- [nongnu] elpa/swift-mode f43317e 290/496: Add MELPA badge in README, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode c73ce40 301/496: Update README.md about swift3-mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 7fc03bf 295/496: Merge pull request #119 from syohex/update-url, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 73abb98 292/496: Use cl-lib function instead of cl.el one, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 787658f 305/496: Update CONTRIBUTING.md, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 0e24233 307/496: Fix forward/backward-sexp inside comments, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 60dab9b 308/496: Update test to return informative exit status, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 01a1127 318/496: Fix indentation before "where", ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode b135df3 316/496: Fix output messages of the test, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 7837c90 319/496: Fix indentation around "where" and "catch", ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 42a209c 322/496: Fix indentation of guard,
ELPA Syncer <=
- [nongnu] elpa/swift-mode ab9f414 320/496: Fix indentation of close curly brace of switch, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 97d86cd 326/496: Tweak test runner, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode ea77cf9 328/496: Add comments, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 6cd2948 342/496: Bump version to 2.2.1, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 7e78225 336/496: Bump version to 2.2, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 1868590 348/496: Add build/debug command, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode a6d00b5 352/496: Simplify code, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 75f5214 364/496: Cleanup code, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 7a9cf18 382/496: Fix beginning/end-of-sentence, ELPA Syncer, 2021/08/29
- [nongnu] elpa/swift-mode 19e6974 371/496: Abstract syntax-ppss, ELPA Syncer, 2021/08/29