When #defines are created using the project settings rather than in the source code, the syntax highlighter incorrectly dims sections between #ifdef / #endif blocks in header files.
For example, if I define DEBUG in the project settings and then have this in a header file:
// header.h#ifdef DEBUGvoid do_debug_thing(); // this line dimmed incorrectly#endif
// header.h
#ifdef DEBUG
void do_debug_thing(); // this line dimmed incorrectly
#endif
Does this make sense? I'm using the latest Keil V5 as of 18th January 2023.
Thanks,Charlie.
still no problem on my side:
I haven't tried in 5.38, can't get free license to work with compiler V5