Skip to content

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

@GoogleCodeExporter

Description

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions