Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: TRAyres on September 07, 2015, 01:25:06 am

Title: Incorrect highlighting with #define's of wxWidgets?
Post by: TRAyres on September 07, 2015, 01:25:06 am
Launching a default wxWidgets application and building it works just fine, but I noticed the #define statements in setup.h are incorrectly highlighted:
The program built with menus, but I see those lines grayed out (see attached image).

I'm using the nightly build, SVN 10320.
Title: Re: Incorrect highlighting with #define's of wxWidgets?
Post by: oBFusCATed on September 07, 2015, 02:18:27 am
This is just a limitation of the feature.
Title: Re: Incorrect highlighting with #define's of wxWidgets?
Post by: TRAyres on September 07, 2015, 07:06:25 am
How can we remove that limitation? Is it a problem with how far nested the #define statements are?

I'll try to build the development branch when I have some time and add some debug output for #define expansions; it should lead to where the problem is.
Title: Re: Incorrect highlighting with #define's of wxWidgets?
Post by: oBFusCATed on September 07, 2015, 09:05:23 am
The problem is that this feature is implemented by the editor component and it doesn't have connection to the CC component, so it have a limited knowledge of the code.