Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Aug 18, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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

@ao2
Copy link

ao2 commented Jul 18, 2018

Still happening in 8.1.89

Using :set cinoptions+=L0 could be used as an emergency workaround if the file has no actual labels, but it's not a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants