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
 Incorrect coloring
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

squidge
Junior Member

23 Posts

Posted - Feb 07 2010 :  10:28:20 AM  Show Profile  Reply with Quote
class TFO_List
{
public:
typedef enum {CopyAction, RenameAction, MoveAction} Action;
};

class TFO_Status
{
public:
enum {Search, Action} statusType;
};

'Action' in the second enum is incorrectly colored. It is blue (the same as the 'Class', 'public' and 'enum' words) rather than the same color as the 'Search' word in the same enum.

VA seems to be treating the 'Action' typedef in the first class as global, rather than being local to that class.

The code compiles correctly without any errors or warnings.

VAX 1738.

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Feb 08 2010 :  12:47:08 AM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description:

case=660

Visual Assist uses a "lightweight" parser and coloring engine because it have to be fast to keep up with fast scrolling even when you are using larger editor window. It does not mean VA handles "Action" wrong at all, I mean other features should be work (like find references).

Edited by - accord on Feb 08 2010 12:48:16 AM
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000