[Qt-creator] preprocessor syntax highlight

Robert Hairgrove evorgriahr at hispeed.ch
Mon Jan 19 20:12:16 CET 2009


Paulo Jnkml wrote:
> Hi,
> 
> in the folowing code:
> 
> #ifdef TEST_SOLVE
> //gray from here
> 
> #elif TEST_ROOT //also gray here???!!!
> //gray here
> 
> #else //normal from here.
> 
> #endf
> 
> The statement #elif TEST_ROOT shouldn't be grayed out.
> Think someone forgot that case in the highlight grammar or something 
> like that.

It seems that all the sections are gray if the symbol isn't defined. For 
example, developing on Linux:

#ifdef Q_OS_WIN32
//...
#endif

This will always be gray on Linux, AFAICT.



More information about the Qt-creator-old mailing list