//any code here will be white background in black theme.
// now highlight works again
You probably enabled the "lexer.cpp.track.preprocessor" lexer property in your filetypes.c and/or filetypes.cpp. This causes the highlighter to "gray out" preprocessor paths it thinks won't be taken. This is generally wrong, both because one generally want to have both path highlighted, and because the highlighter will only assume the test is true if *all* it's operand are correctly known at that moment (which means they have been defined explicitly previously in the same file), and evaluates to true.
this is highlighted, DEBUG is known to be defined
this won't be highlighted, HAVE_SOMETHING isn't known and then is assumed to be false -- no matter what's in config.h or in the command-line that will build this file
Closed due to no response
Log in to post a comment.