lalitmetkar / vim

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

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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