Author Topic: Incorrect highlighting with #define's of wxWidgets?  (Read 2389 times)

Offline TRAyres

  • Single posting newcomer
  • *
  • Posts: 4
Incorrect highlighting with #define's of wxWidgets?
« 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Incorrect highlighting with #define's of wxWidgets?
« Reply #1 on: September 07, 2015, 02:18:27 am »
This is just a limitation of the feature.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline TRAyres

  • Single posting newcomer
  • *
  • Posts: 4
Re: Incorrect highlighting with #define's of wxWidgets?
« Reply #2 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Incorrect highlighting with #define's of wxWidgets?
« Reply #3 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]