Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 [C++] 1274: Coloring of enums slightly wrong
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

draza
Senior Member

France
48 Posts

Posted - Oct 08 2004 :  10:38:26 AM  Show Profile
Have a look at this colored snippet (note that my settings are more or less like default VA except that types are colored with color "Navy"):

class problematic
{
protected:
enum
{
PROBLEM_P = 1 << 1,
NO_PROBLEM_P = 1 << 2,
};

public:

char * problem_p() { return "problem"; }

void no_problem() { }
};


Notice that enum PROBLEM_P is colored the same as method. This happens only if the method is called exactly the same as enum, and until manual refresh (after you enter both symbols for the first time) the situation is actually reverse - method is colored as if it was an enum.

Looks like weird confusion on "light" parser side - I think it is case insensitive, but should not be (on top of confusing enums and functions )

It's only minor annoyance for me, btw.

This problem when solved will be simple

support
Whole Tomato Software

5566 Posts

Posted - Oct 08 2004 :  3:32:20 PM  Show Profile
case=357
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Oct 18 2004 :  3:43:46 PM  Show Profile
Fixed in 1276.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000