Open joelspadin-garmin opened 4 years ago
I just ran across this issue! Thanks for creating a minimal test case already :).
Wanted to mention this here, since its probably going to be a bit before the C syntax gets a proper rewrite.
C files can be viewed using the C++ grammar, in settings.json it looks like:
"files.associations": {
"*.c": "cpp",
}
Definitely a bad hack, but often makes the code look a lot better since almost all C is valid C++, and many of the fixes have not be backported to C
Checklist
"C_Cpp.enhancedColorization": "Disabled"
The code with a problem is:
It looks like:
If you use preprocessor conditionals to conditionally compile cases in a switch statement, the "case" text is not highlighted in C. It does get properly highlighted in C++ though.
Shown VS Code 1.41.0, C/C++ tools 0.26.2, Dark+ theme.
It should look like: