Closed ckruse closed 8 years ago
Several related cases reported by @taku0 in #76:
enum Foo: Bar {
case foo
case bar
var foo
}
enum Foo {
case A(Int, [Int : String]), B, C
func foo() {
}
}
On my setup (emacs 24.4, swift-mode 0.4-cvs) indentation in enums is also broken, but it also causes emacs to "hang up"
enum Rank: Int {
case Ace = 1
case Two, Three, Four, Five, Six, Seven, Eight, Nine, Ten
case Jack, Queen, King
When I press "enter" after "King", emacs starts computing something heavily, and it's impossible to use it anymore, only kill it.
Been running into this more and more. Anybody have an idea what needs to be done to fix this?
Closing in favor of the new indentation logic.
Hi,
indention for enums is totally bugged: