Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Bug: Inconsistent syntax 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
Alexo Posted - Nov 30 2011 : 2:53:52 PM
Syntax coloring for various members of the same class is different.

See example below:
In the .cpp file, tablename is bold, status is blue.
In the .h file, all fields use the same color.

.h file:

.cpp file:

3   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Dec 05 2011 : 3:33:30 PM
*ah* Yes, indeed, it was too obvious

However, I wasn't able to reproduce this part of your bug report. VA might have found a reference of tableName in that cpp that "seems like" a declaration for the parser. Do you see any non-usual references of talbeName?

Do you use defines to "create" variables or any other part of the code? These can "confuse" the parser in special cases.
Alexo Posted - Dec 05 2011 : 2:02:02 PM
quote:
Originally posted by accord

Bold is indicating that the symbol was declared in the same file so it can be normal that it is different is 2 different file. Where was this symbol declared?

All symbols were declared in the same header file, as evident from the images.
accord Posted - Dec 02 2011 : 8:02:13 PM
Coloring code is optimized for speed to cope with fast scrolling thus not accurate in every case, unfortunately.

Bold is indicating that the symbol was declared in the same file so it can be normal that it is different is 2 different file. Where was this symbol declared?

"Status" on the other hand was initially found and recognized as a type, but later was declared in the class. VA overwrote the role of the symbol but just for the header file - as a "cheap" context check. Overlapping symbol names may cause wrong coloring is a known problem, unfortunately:

case=660

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