[Qt-creator] preprocessor syntax highlight

thorbjorn.lindeijer at nokia.com thorbjorn.lindeijer at nokia.com
Tue Jan 20 09:56:38 CET 2009


Paulo Jnkml wrote:
> Hi,
>
> in the folowing code:
>
> #ifdef TEST_SOLVE
> //gray from here
>
> #elif TEST_ROOT //also gray here???!!!
> //gray here

That isn't valid code though. In g++ 4.3.2, this yields "error: #if with no expression". What you probably meant is

#elif defined(TEST_ROOT)

Regards,
Bjørn




More information about the Qt-creator-old mailing list