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

New issue 46 by [email protected]: a bug of c code indent
http://code.google.com/p/vim/issues/detail?id=46

What steps will reproduce the problem?
1.input these codes:
    if (!c) {
        // 当字符为 # 时 ...
        if (c=='#') {
            // 当字符为 { 时 ...
        } else if(c=='{') {
            // 当字符为其他
        }
    }
2. "=gg"
3. the result:
    if (!c) {
        // 当字符为 # 时 ...
        if (c=='#') {
            // 当字符为 { 时 ...
        } else if(c=='{') {
            // 当字符为其他
        }
        }

What is the expected output? What do you see instead?
expected:
    if (!c) {
        // 当字符为 # 时 ...
        if (c=='#') {
            // 当字符为 { 时 ...
        } else if(c=='{') {
            // 当字符为其他
        }
    }
instead:
    if (!c) {
        // 当字符为 # 时 ...
        if (c=='#') {
            // 当字符为 { 时 ...
        } else if(c=='{') {
            // 当字符为其他
        }
        }

What version of the product are you using? On what operating system?
Ver: VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Oct 6 2011 10:20:05)
OS : xubuntu 11.10

Please provide any additional information below.
it's a bug of c code indent.


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