Community
Participate
Working Groups
Well, bug 246369 fixes more serious "Expression syntax error" for preprocessor statements, but C/C++ keywords should not be colored as such in preprocessor directives. Consider: #warning Try using header <static.h> or <struct.h> if you need bool types The coloration in this admittedly artificial example is unsettling. It seems that all preprocessing directives such as #if, #ifdef, #pragma, #include do that. Additionally, #warning itself does not behave inside other preprocessor statements: #error #include/#define/#warning/#error should not be highlighted inside #warning/#error either An observation: I notice that in #error the message is highlighted with squiggly line not including "#error" but in #warning the whole line including "#warning", fwiw.