-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
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:
#ifndef ERIS_MACROS_TYPE_CASE_H
#define ERIS_MACROS_TYPE_CASE_H
#define ERIS_TYPE_CASE(A, B) switch ((eris_U64)((A).type) | ((eris_U64)((B).type) << 8)) {
#define ERIS_TYPE_WHEN(A, B) case (eris_U64)(A) | ((eris_U64)(B) << 8):
#define ERIS_TYPE_ELSE default:
#define ERIS_TYPE_END }
#endif
It looks like:
In C:
In C++:
Theme used: Default Light Modern
It should look like:
I expected the syntax highlighting in C to match that of C++.
Also, the parentheses in MY_CASE and ERIS_TYPE_WHEN are colored differently because the switch braces are in two separate macro bodies.
Metadata
Metadata
Assignees
Labels
No labels

