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
 Incorrect syntax coloring for "using" and "typedef
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

uri1975
New Member

2 Posts

Posted - Feb 24 2018 :  03:03:22 AM  Show Profile  Reply with Quote
I installed a clean vs2017 and VisualAssist 2248.
Found a problem with the coloring using typedef and using.


int func (int v1, int v2) {return v1 + v2;}

typedef int myInt;

typedef int (*pf) (int, int);    // Bug!  pf - function/method type
using pf2 = int (*) (int, int);  // Bug!  pf - function/method type
typedef decltype(func) *pf_decl;		// Correct

auto ret_func () -> int (*) (int, int)  // Bug!  ret_func - not function type
{return func;}

int main ()
{
	myInt tmp;
	pf ptr1 = func;  // Bug
	pf_decl ptr2 = func;

	tmp = ptr1(2, 3);
	tmp = ptr2(4, 5);
	ptr2 = ret_func();
	tmp = ptr2(6, 7);

	return 0;
}








Microsoft VS2017 15.5.1
Microsoft .NET Framework 4.6.01055

VA_X.dll file version 10.9.2248.0 built 2017.12.16
DevEnv.exe version 15.0.27130.2003 Professional
msenv.dll version 15.0.27130.2003
Comctl32.dll version 6.10.7601.17514
Windows 7 6.1 Build 7601 Service Pack 1
2 processors (x86)
Language info: 1251, 0x419

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Feb 24 2018 :  1:02:19 PM  Show Profile  Reply with Quote
Thank you for the clear example, we are aware of this problem, and I have added this example to the bug report:

case=90545

This is a little tricky for our colouring code, since it is designed to run quickly, to keep up with you scrolling through your code, and situations like this require a bit more analysis to understand correctly.

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

uri1975
New Member

2 Posts

Posted - Feb 25 2018 :  04:27:29 AM  Show Profile  Reply with Quote
Thank you for your attention. I understand that the typedef construct are quite complex for parsing and I hope for a speedy solution of the problem.

Good luck in developing such an excellent assistant as VisualAssist.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18724 Posts

Posted - Feb 26 2018 :  07:28:18 AM  Show Profile  Reply with Quote
This is something we are aware of, but it's not currently a priority, so I am not sure when we will tackle this. But we are aware of it, and requests like this help us to track interest in different bugs and features.

zen is the art of being at one with the two'ness
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