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

New issue 4 by [email protected]: C indenting: "):" in comment confuses the indenter
http://code.google.com/p/vim/issues/detail?id=4

With 'cino' set to "(0,l1,Ws" the following C code gets indented incorrectly:
- foo2a(void) is indented too much,
- foo2b(void) is indented too much but by a different amount.

This happens for me in Vim 7.3.189.

/* some comment */
        int
foo1(void)
{
        bar();
}

/* some comment
 * ): */
        int
        foo2a(void)
{
        bar();
}

/* some comment
 * ):
 * and even some more. */
        int
          foo2b(void)
{
        bar();
}
/* some comment
 * : */
        int
foo3a(void)
{
        bar();
}

/* some comment
 * :
 * and even some more. */
        int
foo3b(void)
{
        bar();
}

--
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

Raspunde prin e-mail lui