Page 1 of 1

#ifdef block highlighting

Posted: Wed Dec 11, 2013 10:55 am
by SteelRat
__WXGTK__ is defined somewhere in wxWidgets and in Project's settings, but code is highlighted as excluded.
highlight_error.png
And if i defined something like #define VAR 1 and use it in code as #if VAR .. #endif - code highlighted as excluded. But if i do #if VAR != 0 ... #endif - everything is fine.
upd: #if does not work correctly anyway. #if VAR highlights after #else block, #if VAR != 0 highlights first block. And no matter what is real value of VAR.

Re: #ifdef block highlighting

Posted: Wed Dec 11, 2013 5:07 pm
by eranif
You need to enable clang for this feature to work properly + run at least one full rebuild
Otherwise, it should work

Eran

Re: #ifdef block highlighting

Posted: Thu Dec 12, 2013 9:47 am
by SteelRat
Thank you, it helped.