4.02 - Last letter of constant highlights as string

Post bugs related to the IDE here
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

4.02 - Last letter of constant highlights as string

Post 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.
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4326
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post 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?
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post 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.
Last edited by Mistrel on Sun Jan 06, 2008 4:31 am, edited 1 time in total.
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4326
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

no sorry no
but I am using default colorscheme
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post 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?
User avatar
kenmo
Addict
Addict
Posts: 1967
Joined: Tue Dec 23, 2003 3:54 am

Post 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)
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: 4.02 - Last letter of constant highlights as string

Post by PB »

> result for me is that the last character of #MAX_PATH turned orange

Confirmed here when following your steps.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Post Reply