Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Syntax coloring and macros

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
leto58 Posted - Oct 10 2008 : 6:10:53 PM
Hi,
I get wrong coloring when using macros, like in the following example:

#include "stdafx.h"

class MyClass
{
	void  MyFunction() {};
};

#define MMM  MyClass

void  TestFunction()
{
	MyClass  mc1;
	mc1.MyFunction();
	MMM  mc2;
	mc2.MyFunction();
}

mc1 gets proper coloring for "variables" (I set it green for this sample).
mc2 should also get this coloring but remains black.

I rebuilt symbol database, cleared cache and restarted IDE.

Regards,
Leto

VA_X.dll file version 10.4.1649.0 built 2008.09.09
Licensed to:
VA X: XXX
DevEnv.exe version 8.0.50727.867
msenv.dll version 8.0.50727.867
Font: Courier 13(Pixels)
Comctl32.dll version 6.10.6001.18000
Windows Vista 6.0 Build 6001 Service Pack 1
4 processors

Platform: Win32
Stable Includes:
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\include;
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\include;
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\PlatformSDK\\include;
D:\\Program Files\\Microsoft Visual Studio 8\\SDK\\v2.0\\include;

Other Includes:

Stable Source Directories:
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\mfc;
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\mfcm;
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\atlmfc\\src\\atl;
D:\\Program Files\\Microsoft Visual Studio 8\\VC\\crt\\src;

2   L A T E S T    R E P L I E S    (Newest First)
leto58 Posted - Oct 15 2008 : 04:45:37 AM
Hi,

The example I sent was already on a brand new win32 project.
But I found the problem:
Due to issues on parsing macros that called macros, I followed the instructions given in FAQ http://docs.wholetomato.com?W363 and it was the cause of the problem. As soon as I resumed registry to default values (removed LimitMacro and LimitMacroParsing=01), I got proper syntax coloring.

It does not matter anyway, since VA was not able to parse some of my macros (which called macros) with or without the LimitMacro trick. I will send you an example of these macros when I am able to reproduce similar ones (independent of my code) on a simple project.

Regards,
Leto
accord Posted - Oct 12 2008 : 10:03:16 AM
I wasn't able to reproduce your problem here using VS2005 and VAX1649. Can you please try to paste your example into a new win32 test project to see if the coloring working here? I guess you have something in the surrounding source that cause this effect.

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