Bug folding feature in Editor ?

Working on new editor enhancements?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

Would it be possible to also disable folding inside CompilerIf?

Code: Select all

; Folding doubles
CompilerIf 0
  Procedure Test0()
CompilerElse
  Procedure TestX()
CompilerEndIf
EndProcedure
freak
PureBasic Team
PureBasic Team
Posts: 5941
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

If the folding inside the CompilerIf is ignored, then we have one too many "fold close" because
of the EndProcedure which is outside.

The way I solve this kind of thing is by putting a ;} (which is defined as "fold close" by default)
behind one of the Procedure lines which corrects the folding again.
quidquid Latine dictum sit altum videtur
Post Reply