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
 C++ highlighting issues
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Barktroll
New Member

7 Posts

Posted - Jun 14 2013 :  4:17:45 PM  Show Profile  Reply with Quote
I've noticed some small quirks with the syntax highlighting since I switched to VS2012. I'm using build 1940, and with the following code:
#include <memory>
#include <thread>
#include <exception>

using std::unique_ptr;
using std::thread;
using std::exception;

class MyClass;

void myFunction(unique_ptr<MyClass>&& rvalue)
{
}

int main(int argc, char* argv[])
{
	try
	{
		thread myThread(
		[]()
		{
		});
	}
	catch(const exception&)
	{
	}
}

... I get the following syntax highlighting:


As you may or may not see, the faults in the highlighting are:
  • Line 11: "rvalue" should be silver, not white.
  • Line 19: "thread" should be the same turquoise as the other types.
  • Line 24: "exception" should be the same turquoise as the other types.

accord
Whole Tomato Software

United Kingdom
3164 Posts

Posted - Jun 14 2013 :  5:55:18 PM  Show Profile  Reply with Quote
I am seeing the same effect here for "exception":

case=58735

However, my "rvalue" and "thread" are correct. Can you please create a clean new win32 test project, create a new file, and paste this code sample there to see if you can still see the same problems? If yes, can you please export your Visual Assist and Visual Studio settings and send them in?

VA Options -> Performance -> Export Settings
IDE tools menu -> Import and Export Settings -> Export selected environment settings

So I can import them here to see if I can reproduce the problem.

You can send the files in using the following form:
http://www.wholetomato.com/support/contact.asp

Please paste the URL of this topic into the description field so we can match it up.
Go to Top of Page

Barktroll
New Member

7 Posts

Posted - Jun 15 2013 :  02:46:44 AM  Show Profile  Reply with Quote
The above code was in a completely new Win32 Console Application project.

I've sent you the registry file with the settings.

EDIT: Also, if it makes any difference, I have turned off Visual Studio's own "Semantic Colorization", but I still have IntelliSense enabled.

Edited by - Barktroll on Jun 15 2013 02:49:36 AM
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3164 Posts

Posted - Jun 17 2013 :  5:13:57 PM  Show Profile  Reply with Quote
*ah* Turning off Semantic Colorization has helped. Normally VA colors are used when enabled, even with this setting turned on, but Intellisense "masked" the colors where VA had problem interpreting the symbols, it seems.

rvalue references is case=20625

std::thread is case=74979

If I use directly std::thread it seems to work though.

Edited by - accord on Jun 17 2013 5:31:00 PM
Go to Top of Page

sean
Whole Tomato Software

USA
2641 Posts

Posted - Feb 26 2014 :  10:38:57 AM  Show Profile  Reply with Quote
case=20625 is fixed in build 2029
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2019 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000