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
 Bug: Inconsistent syntax coloring
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Alexo
Ketchup Master

Canada
81 Posts

Posted - Nov 30 2011 :  2:53:52 PM  Show Profile  Reply with Quote
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:


Edited by - Alexo on Dec 01 2011 3:36:54 PM

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Dec 02 2011 :  8:02:13 PM  Show Profile  Reply with Quote
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

Edited by - accord on Dec 02 2011 8:03:23 PM
Go to Top of Page

Alexo
Ketchup Master

Canada
81 Posts

Posted - Dec 05 2011 :  2:02:02 PM  Show Profile  Reply with Quote
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.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Dec 05 2011 :  3:33:30 PM  Show Profile  Reply with Quote
*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.
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