[Qt-creator] 20090122 binary still messes #elif's

Paulo Silva paulo.jnkml at gmail.com
Fri Jan 23 11:57:07 CET 2009


Hi,
well it works that way but.. I don't think that is the correct behavior.
I think the correct behavior is to gray out only the parts within the
#ifdef, #elif, #endif preprocessors.

Besides, since I don't think that an #else is any more important than an
#elif, either they both get blue (correct behavior) or both get grayed out.
Otherwise I'll classify this as discrimination against #elifs!

best

On Fri, Jan 23, 2009 at 10:08 AM, Roberto Raggi <roberto.raggi at trolltech.com
> wrote:

>
> Hi,
>
> The patch was applied and it should work! By the way try this code
>
> // foo.cpp
>
> #define B           // YOU NEED TO DEFINE B to enable the highlighting
> of the #elif block :-)
>
> #ifdef A
> //gray
> #elif defined(B) //gray
> //gray
> #else
> #endif
>
>
> ciao robe
>
>
> On Jan 23, 2009, at 11:00 AM, Paulo Silva wrote:
>
> > Hi,
> > just tried the binary from 20090122 and noticed that the #elif is
> > still grayed out.
> >
> > #ifdef A
> > //gray
> > #elif defined(B) //gray
> > //gray
> > #else
> > #endif
> >
> > How about the previous patch? Still not applied?
> >
> > cheers
> > _______________________________________________
> > Qt-creator mailing list
> > Qt-creator at trolltech.com
> > http://lists.trolltech.com/mailman/listinfo/qt-creator
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20090123/3308df7b/attachment.html 


More information about the Qt-creator-old mailing list