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
 Coloring problem
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Sir Zooro
Junior Member

Poland
15 Posts

Posted - Nov 23 2004 :  3:57:40 PM  Show Profile
Hello,
Type something like this (C++):

int test(5);

test is colored like funcion, instead of variable.

I'm using VAX build 1287.

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Nov 23 2004 :  5:48:52 PM  Show Profile
yep, it has been doing this for ages. the official answer is that the colouring is worked out by a fast, light weight parser. this parser has to be fast and light weight so that it can keep up when you are scrolling the page, and still allow VAX to apply colours without bringing your machine to its knee's.

as a result it isn't good at complex situations. the general problem of telling this sort of variable apart from a function prototype is rather tricky, unless you are the compiler.

the unofficial answer is to consider the line:

QString strName("fred");

where you are calling a constructor, so it is reasonable to colour it as a function

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000