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

Incorrect highlighting of comments following #error/#warning directives w/o message #611

Closed
1 task done
per1234 opened this issue Oct 30, 2022 · 1 comment
Closed
1 task done

Comments

@per1234
Copy link

per1234 commented Oct 30, 2022

Inline comments following #error and #warning directives which do not include the optional message string are highlighted incorrectly.

Checklist

  • This problem exists even with the setting "C_Cpp.enhancedColorization": "Disabled"

The code with a problem is:

#warning bar  // Coloration of comment is as expected
#warning  // Coloration of comment is NOT as expected
#error foo  // Coloration of comment is as expected
#error  // Coloration of comment is NOT as expected

It looks like:

Using "Dark+" theme:

image

It should look like:

Comments should be highlighted consistently regardless of whether or not the #error or #warning directive is followed by a message.

@jeff-hykin
Copy link
Owner

should now be fixed with v1.17.2

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

No branches or pull requests

2 participants