emacs-elpa-diffs
[Top][All Lists]
Advanced

[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
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]