Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 38 by lech.lor...@gmail.com: C indenting: enclosing case values in switch construct causes wrong indentation
http://code.google.com/p/vim/issues/detail?id=38

In the following example some lines are indented too little:

#v+
void func()
{
    switch (foo)
    {
        case (bar):
            if (baz())
            quux(); // FIXME: this line should be indented more!
            break;
        case (shmoo):
            if (!bar)
        { // FIXME: this brace is indented too little
        }
        case (foo1):
            switch (bar)
        { // FIXME: this brace is indented too little
            case baz:
                baz_f();
                break;
        }
            break;
        default:
            baz();
            baz();
            break;
    }
}
#v-

--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to