swift-emacs / swift-mode

Emacs support for Apple's Swift programming language.
GNU General Public License v3.0
372 stars 47 forks source link

extra indent after variable declaration in switch-case block #135

Closed hex2010 closed 8 years ago

hex2010 commented 8 years ago

20161008.2249 (melpa).


func test(a: Int) {
    switch a {
    case 1:
        var b: Int = 0
               var c: Int = 0
    case 2:
        var d: Int = 0
               d = 1
               continue
    default:
        var e: Int = 0
               return
                   assert(true);

    }
}

GNU Emacs 25.2.50.1 (x86_64-apple-darwin16.0.0, NS appkit-1504.00 Version 10.12 (Build 16A323)) of 2016-09-26

taku0 commented 8 years ago

Fixed b6d0351. Thanks for reporting.