better-cpp-syntax icon indicating copy to clipboard operation
better-cpp-syntax copied to clipboard

Syntax highlighting is incorrect for valid C header file

Open Omcsesz opened this issue 2 years ago • 0 comments
trafficstars

Checklist

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

If Disabling that^ makes the problem go away, then follow this to make an issue on the C++ extension: https://github.com/microsoft/vscode-cpptools/issues/new/choose

The code with a problem is:

#define test test2 /* line 1
          The timeout is set to 5x to ensure we don't timeout too early. */

/* test comment */
typedef enum{
    A= 0,
    B= 1
} BB;

It looks like:

image

It should look like:

The comments should all be in dark green as it is visible in the end of the first line, and the normal syntax highlighting should be applied for lines 5-8

Omcsesz avatar Oct 17 '23 11:10 Omcsesz