Skip to content

C indenting: colon inside comment causes word to be treated like a label #40

@GoogleCodeExporter

Description

@GoogleCodeExporter
In the following code sample the second comment is indented incorrectly:

#v+
    void
func(void)
{
    int abc; /* comment
              * NOTE: this is indented correctly. */
    int def; /* comment
NOTE: this is not indented correctly.
This is due to the colon following NOTE. */
}
#v-

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions