swift-emacs / swift-mode

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

Indention bug: `default` statements in cases are indented, the other `case` statements aren't #48

Closed ckruse closed 10 years ago

ckruse commented 10 years ago

Hi,

when writing a case statement it gets indented like this:

    switch(x) {
    case 1:
      doing()
      default:
      return
    }

It should be indented like the rest of the case statements:

    switch(x) {
    case 1:
      doing()
    default:
      return
    }