Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Incorrect coloring

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
squidge Posted - Feb 07 2010 : 10:28:20 AM
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.
1   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Feb 08 2010 : 12:47:08 AM
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).

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000