branch: elpa/swift-mode
commit ab9f414d9361883a246be37ea007f7c4f4103e94
Author: taku0 <mxxouy6x3m_git...@tatapa.org>
Commit: taku0 <mxxouy6x3m_git...@tatapa.org>

    Fix indentation of close curly brace of switch
---
 swift-mode-indent.el              | 2 +-
 test/swift-files/statements.swift | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/swift-mode-indent.el b/swift-mode-indent.el
index 8a4d7df..db31be4 100644
--- a/swift-mode-indent.el
+++ b/swift-mode-indent.el
@@ -700,7 +700,7 @@ This function is also used for close-curly-brace."
           (cond
            ((member
              (swift-mode:token:text next-token)
-             '("for" "while" "repeat" "if" "else" "defer" "do" "catch"
+             '("for" "while" "repeat" "switch" "if" "else" "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 cd7603f..93c921d 100644
--- a/test/swift-files/statements.swift
+++ b/test/swift-files/statements.swift
@@ -493,7 +493,7 @@ case foo:
 default:
     foo()
     foo()
-} // swift-mode:test:known-bug
+}
 
 switch
   foo
@@ -504,7 +504,7 @@ case foo:
 default:
     foo()
     foo()
-} // swift-mode:test:known-bug
+}
 
 
 switch foo {

Reply via email to