Author |
Topic |
|
sjaffe
Ketchup Master
USA
60 Posts |
Posted - Jan 19 2007 : 4:19:55 PM
|
I have a class with two methods: Register and Unregister. These should have the same color, specifically that for Methods. The Unregister is the correct color, but Register is colored in the "Classes, structures and typedefs" color. It is not being recognized as a method from the use context regarding coloring.
NOTE: I was unable to consistently recreate this in a simple example. If I create a class from scratch with the two methods, they are the correct colors. If I cut code out from a header and source file from another project (which VAX knows about), when I paste the problem class and implementation in, they are the wrong color. If I change the name of the class, the colors are then correct. If I change the name back, the colors remain correct. Very strange.
|
Art is the zen of being one too
Stan |
Edited by - sjaffe on Jan 19 2007 4:21:14 PM |
|
rhummer
Tomato Guru
USA
527 Posts |
Posted - Jan 19 2007 : 4:25:37 PM
|
Do you have a class/structure/typedef named Register? I see this too, but some of our programmers have classes/structures/typedefs named similar to methods I have.
This is due to the quickness of the color parser so as I understand some types take precedence over other types. |
Tools Engineer - Raven Software VS2005 SP2/VS2008 SP1 - VAX <LATEST> - Win 7 x64
|
|
|
sjaffe
Ketchup Master
USA
60 Posts |
Posted - Jan 19 2007 : 4:31:14 PM
|
Yes, I have a class named Register, but from the context the color parser should recognize this is not a reference to the class. Can I select between "fast and inaccurate" and "slow and correct" modes? ;^)
Thanks for your explanation. Do you recognize this as incorrect behavior? |
Art is the zen of being one too
Stan |
|
|
feline
Whole Tomato Software
United Kingdom
19021 Posts |
|
|
Topic |
|