Inline comments following #error and #warning directives which do not include the optional message string are highlighted incorrectly.
Checklist
[x] 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:
It should look like:
Comments should be highlighted consistently regardless of whether or not the #error or #warning directive is followed by a message.
Inline comments following
#error
and#warning
directives which do not include the optional message string are highlighted incorrectly.Checklist
"C_Cpp.enhancedColorization": "Disabled"
The code with a problem is:
It looks like:
Using "Dark+" theme:
It should look like:
Comments should be highlighted consistently regardless of whether or not the
#error
or#warning
directive is followed by a message.