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

Syntax highlighting is incorrect for valid C header file #646

Open
1 task done
Omcsesz opened this issue Oct 17, 2023 · 0 comments
Open
1 task done

Syntax highlighting is incorrect for valid C header file #646

Omcsesz opened this issue Oct 17, 2023 · 0 comments

Comments

@Omcsesz
Copy link

Omcsesz commented Oct 17, 2023

Checklist

  • 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 Omcsesz changed the title Syntax highlighting is incorrect for valid C code Syntax highlighting is incorrect for valid C header file Oct 17, 2023
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

1 participant