Page 1 of 1

4.02 - Last letter of constant highlights as string

Posted: Sun Jan 06, 2008 2:38 am
by Mistrel
Create a new source in the IDE with two lines. Leave the first line blank and type "Debug #MAX_PATH" on the second line. Now, backspace away the 'h' and hit 'h' to put it back as lower-case, then use the up arrow to change lines.

The result for me is that the last character of #MAX_PATH turned orange, the color I have set for strings and numbers while the rest of the constant was the correct color.

Posted: Sun Jan 06, 2008 4:18 am
by Rook Zimbabwe
The only thing mine did was make the small "h" back into a "H" but I hit enter to go to line 3... Did you hit ENTER after doing that?

Posted: Sun Jan 06, 2008 4:30 am
by Mistrel
That's not what my instructions said to do. Did you get the color bug when you changed to line one?

There's a lot of thinigs you can do to make it go away. This is a pretty obscure bug but it's still a bug all the same.

Posted: Sun Jan 06, 2008 4:30 am
by Rook Zimbabwe
no sorry no
but I am using default colorscheme

Posted: Sun Jan 06, 2008 4:32 am
by Mistrel
I'm not using the defaults. Would you try changing your 'Strings' and 'Numbers' colors to something else and see if this causes the bug?

Posted: Sun Jan 06, 2008 5:23 am
by kenmo
Confirmed here, and I think this has been around for a while.

EDIT - nope, it was a slightly different bug that I posted myself! http://www.purebasic.fr/english/viewtop ... syntax+bug (but this one appears to have been fixed)

Re: 4.02 - Last letter of constant highlights as string

Posted: Sun Jan 06, 2008 5:26 am
by PB
> result for me is that the last character of #MAX_PATH turned orange

Confirmed here when following your steps.