Author |
Topic |
|
AlphaDog
New Member
7 Posts |
Posted - Aug 31 2004 : 5:19:27 PM
|
When I have a function that takes two parameters, and I make the first 'this' and the second a define, the colorization is off..
It should look like this:
somefunc( this, NULL);
But it ends up like this:
somefunc( this, NULL);
It only happens when the first param is a this pointer and the second is a define. Happens anywhere a define follows the this keyword.
Anyone know why this is..?
~Scott
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Sep 07 2004 : 6:58:50 PM
|
definetly looks like a bug
case=274 |
zen is the art of being at one with the two'ness |
|
|
imbmay
New Member
3 Posts |
Posted - Oct 26 2004 : 3:21:49 PM
|
I'm having a similar problem with 'this' (lower case t h i s) in a commentted line or not (I found it because a comment had 'this' [with the quotes] in it), it is changing the coloring of a stable preprocessor macro (purple italics) in the previous line to brown (like a method call). |
|
|
support
Whole Tomato Software
5566 Posts |
Posted - Oct 27 2004 : 1:25:26 PM
|
imbay: Can you post a small screen shot of the problem?
You are welcome to send your GIF to [email protected]. We can post for you. |
|
|
support
Whole Tomato Software
5566 Posts |
Posted - Oct 27 2004 : 3:03:09 PM
|
|
|
|
imbmay
New Member
3 Posts |
Posted - Oct 27 2004 : 3:24:33 PM
|
To make the GIF in the previous posting I just created an empty header file and added the text, this was all that was needed to reproduce the problem. The macro CPPUNIT_ASSERT is included in a file added to the VS.NET TOOLS > OPTIONS... > Projects > VC++ Directories, Include Files list. As the comments above indicate, the macro is displayed incorrectly if the line following the line with the macro contains the word "this" as the last word on the line, or if the word "this" is in quotes (single or double) and is not followed by a letter. If the "this" with out quotes has any character (including white space) following it, the macro is displayed correctly. If the "this" with qoutes has nothing, or anything other than a letter following it, it displays incorrectly. |
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
Posted - Oct 28 2004 : 5:53:11 PM
|
my machine doesnt recognise CPPUNIT_ASSERT, but it does the same thing with assert, which is useful.
i was able to simplify your 3rd case down to:
assert(expectedMoney == money); // displayed as method.
// this? interestingly if you replace the '?' with '$' then assert is displayed correctly.
case=410 |
zen is the art of being at one with the two'ness |
|
|
imbmay
New Member
3 Posts |
Posted - Oct 29 2004 : 08:18:26 AM
|
CPPUNIT_ASSERT is from the CPPUnit library which I've added to my solution, didn't think of trying ASSERT. In the third example I was just listing all of the characters that didn't correct the issue. |
|
|
|
Topic |
|