lalitmetkar / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

C indenting: opening brace after a closing brace confuses the indenter #39

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In the following example the indentation incorrectly is constantly growing:

#v-
static foo_t foo[] =
{
    {
        "a"
    }, {
        "b"
    }, {
        "c"
    },
        {
            "d" // FIXME: this is indented too much
        }, {
            "e"
        },
            {
                "f"
            }, {
                "g"
            },
                {
                    "h"
                }
};
#v-

Original issue reported on code.google.com by lech.lor...@gmail.com on 13 Dec 2011 at 10:16