jeff-hykin / better-cpp-syntax

💾 The source of VS Code's C++ syntax highlighting
GNU General Public License v3.0
155 stars 30 forks source link

The color of the keyword "#endif" is not as expected if you select Language as C #589

Open alexr00 opened 2 years ago

alexr00 commented 2 years ago

Checklist

The code with a problem is:

#ifdef CONFIG_CC_HAS_ASM_INLINE
#define asm_inline asm __inline
#else
#define asm_inline asm
#endif
image

When you select the Language as C++, then the color is as expected.

image

Originally from @smcdef in https://github.com/microsoft/vscode/issues/150603