nixeagle / ooc-mode

9 stars 2 forks source link

YAIE (Yet Another Indentation Error) #17

Closed solson closed 14 years ago

solson commented 14 years ago

ooc-mode's indentation:

getMessage: func -> String {
    if(origin)
        return "[%s in %s]: %s\n" format(this as Object class name, origin name, msg)
    else
            return "[%s]: %s\n" format(this as Object class name, msg)
}

Expected indentation:

getMessage: func -> String {
    if(origin)
        return "[%s in %s]: %s\n" format(this as Object class name, origin name, msg)
    else
        return "[%s]: %s\n" format(this as Object class name, msg)
}

I think you can see the problem.

nixeagle commented 14 years ago

Closed by c5d375b68848d45a453d1eada6021c965e8964bb: don't indent further in on statements after else, only on topmost-intro