Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 [1825] value and pointer colored like keywords

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
Luke1410 Posted - Jun 18 2010 : 6:45:24 PM
Hi,

using the following sample (in a C++ project), I see some IMO undesired coloring of the identifiers "pointer" and "value" (tested in VS 2005 SP1 and VS 2008 SP1):

void test() {
	pointer i; // pointer is correctly underlined as a syntax error, but is also colored blue (I would expect it to be black)
	int value; // value is colored blue --- I would expect it to be black, too.
	testing a; // correctly colored (no issue here --- both "testing" and "a" are black and testing is correctly underlined as a syntax error
}

// this is how I would expect it to be colored:
void test() {
	pointer i;
	int value;
	testing a;
}


Is this a limitation of VAX? Do I have to change some settings to get value and pointer colored black like "testing"?

Regards,
Stefan
4   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Feb 26 2014 : 10:40:19 AM
case=37888 is fixed in build 2029
accord Posted - Jun 22 2010 : 2:37:58 PM
Yes, you are right. But this is sort of by design. Coloring code has to be terrifically fast to keep up with "agile" scrolling, so we are analyzing the context loosely:

case=660
Luke1410 Posted - Jun 21 2010 : 8:52:48 PM
I cannot reproduce ur steps about the pointer identifier.
If I press ALT+G on the pointer, I see a list with the following entries:
- set:172 typedef typename _Mybase::pointer pointer
- set:67 typedef typename _Mybase::pointer pointer
- regex:2671 typedef const value_type *pointer
- xstring:507 typedef _Tptr pointer

Hence I'm not seeing any reference to generics.h in my list which is what I expect, since I'm not including any files in the test project.
The weird thing is that I'm still seeing the list given above, where all entries are actually class-internal typedefs and hence should not apply to the pointer-identifier used in the test()-function, IMO.
Or am I missing something?
accord Posted - Jun 21 2010 : 03:15:29 AM
I am seeing the same effect with value:

case=37888

About pointer: VA is coloring every variable it had parsed, even if the file isn't included. Pointer is defined in generics.h, you can check it if you press alt+g over "pointer".

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