Sign in to follow this  
gasto

Why is Array highlighted in blue (Visual Studio 2007)

Recommended Posts

gasto    303
Why is the array token highlighted in Visual Studio 2007 ver. 3.5 SP1?

Is it some kind of template mangling?

Share this post


Link to post
Share on other sites
Agony    3452

Sounds like the joy of C++/CLI (.NET) infecting the syntax highlighting of ordinary C++ code.  (MSDN:  Arrays, C++ Component Extensions)  The same thing always bugged me about the token event.  Never did find a way to turn off the non-standard C++ syntax highlighting, but I don't recall looking too hard.  If you search around, you might find something.

Edited by Andy Gainey

Share this post


Link to post
Share on other sites
frob    44908
It is hilighted based on the rules specified in the syntax hilighting. You can modify usertype.dat if you want more stuff colored.

As for the reason it is included, the language evolved again and std::Array is part of it. Visual Studio picks up the word Array and colors it accordingly. C++ has evolved multiple times, with the language standards or standard additions coming in 1998 (standard), 2003 (standard), 2005 (addendum), 2007 (addendum), 2011 (standard). C++14 (a standard) is just about to be signed off, and C++17 is already a working draft.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this