Author |
Topic |
|
Alexo
Ketchup Master
Canada
81 Posts |
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:
|
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
|
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 |
|
|
Alexo
Ketchup Master
Canada
81 Posts |
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
Whole Tomato Software
United Kingdom
3287 Posts |
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. |
|
|
|
Topic |
|