Skip to content

unexpected switch-case indent #134

@hex2010

Description

@hex2010

I got some unexpected indent in switch-case block, with Swift Mode:Switch Case Offset set to 0, in version 20161002.506 (melpa):

       switch any {
        case foo:
            break;
        case bar:
        case is ():
            if(!st.writeValue(flag | cNil) ||
                   !_writeName(st, flag) ) {
                return false
            }
            case let x as Bool:
                if(!st.writeValue(flag | (x ? cTrue : cFalse)) ||
                       !_writeName(st, flag) ) {
                    return false
                }
                case let x as Ref:
                    if(!st.writeValue(flag | cObject)  ||
                           !_writeName(st, flag) ||
                           !st.writeUvarint(x.value)) {
                        return false
                    }

Is this a BUG?

switch-case-indent

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions