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
 Syntax coloring problem with c++ 11
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

dgallo
Senior Member

28 Posts

Posted - Nov 28 2013 :  05:17:09 AM  Show Profile  Reply with Quote
Hi,

I'm facing a syntax coloring problem with c++ 11 in-class initialization form:



It's seems "{}" syntax is causing trouble to VAssist.

feline
Whole Tomato Software

United Kingdom
18750 Posts

Posted - Dec 10 2013 :  3:31:19 PM  Show Profile  Reply with Quote
Apologies for the slow reply. Using VS2007 and VS2013 I am seeing a different result. I have added the following very simple test case to a .cpp file:

class testCreatingInstances { };

void testGeneralCode()
{
	testCreatingInstances *instanceOne{};
	testCreatingInstances *instanceTwo{}, *instanceThree{}, *instanceFour{};
}


All 4 variables are shown in the same colour by VA, the colour I have set for local variables. I have local variables in bold turned on.



If you place the caret into "m_CheckInstitute" and "m_CheckService" in turn, what is shown in the VA definition field? This is the right hand side of the two fields VA shows, normally at the top of the editor.

For my sample code I am seeing:

testCreatingInstances *instanceTwo
testCreatingInstances * instanceThree

which seems reasonable and correct.

zen is the art of being at one with the two'ness
Go to Top of Page

dgallo
Senior Member

28 Posts

Posted - Dec 11 2013 :  03:13:56 AM  Show Profile  Reply with Quote
Using VAS2007 and VS2013, Windows 8.1 x64

With this contruct I was able to reproduce the problem.
class testGeneralCode
{
	int *instanceOne{};
	int *instanceTwo{}, *instanceThree{}, *instanceFour{};
};



Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18750 Posts

Posted - Dec 17 2013 :  11:09:50 PM  Show Profile  Reply with Quote
Apologies for the slow reply. Thank you for the clear code example, I am seeing the same problem with this code:

case=79074

zen is the art of being at one with the two'ness
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

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