Editor folding problem when !macro

Working on new editor enhancements?
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Editor folding problem when !macro

Post by Psychophanta »

I have activated folding when Macro is found but not when !macro is found, but editor confuses it.
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
freak
PureBasic Team
PureBasic Team
Posts: 5941
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

The folding is a simple word matching check for speed reasons.
It will match any occurance of 'Macro' (case insensitive), no matter if its an asm keyword or not
quidquid Latine dictum sit altum videtur
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

freak wrote:The folding is a simple word matching check for speed reasons.
It will match any occurance of 'Macro' (case insensitive), no matter if its an asm keyword or not
Timo, to solve it perhaps you could treat ! same as ; for the folding matter. :?
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
IceSoft
Addict
Addict
Posts: 1695
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Post by IceSoft »

Here a hint:

Add a space character ' ' in front and behind the folding keywords.

Example:

Old: 'Macro'

New: ' Macro '

The new one match no longer the '!Macro'.

Ok it is not the perfect one...but the better one.
Belive! C++ version of Puzzle of Mystralia
Bug Planet
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

There is still the problem with autocompletion after !.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Bug persists in PB4.0 :?
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
freak
PureBasic Team
PureBasic Team
Posts: 5941
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

As said above, this is by design.. it is not a bug.
quidquid Latine dictum sit altum videtur
Post Reply