Page 1 of 1

[PB5.30] IDE : Comments start by - and Issues

Posted: Mon Aug 11, 2014 2:31 pm
by Le Soldat Inconnu
Edit : Look Post 4, thanks

Hi

When a comment start by a "-", comment is consider as a "title" in procedure list

But in this code, comment is not a title

Code: Select all

;{- Title
If Truc = Bidule
  Truc + 1
EndIf
;}
Another point, i want use note to set backgroud color on comment Title.
So i set this regular expression "^{?-.*"
here, i get color on first line

Code: Select all

;{- Title
If Truc = Bidule
  Truc + 1
EndIf
;}
But here no

Code: Select all

;- Title
If Truc = Bidule
  Truc + 1
EndIf
;

Re: [PB5.30] IDE : Comments start by -

Posted: Mon Aug 11, 2014 8:39 pm
by Demivec
Sounds similar to this.

Re: [PB5.30] IDE : Comments start by -

Posted: Tue Aug 12, 2014 1:08 am
by PB
> When a comment start by a "-", comment is consider as a "title" in procedure list

Correct. Been that way forever.

> But in this code, comment is not a title
> ;{- Title

Are you serious? The comment doesn't start with "-" but with "{", as you just noted.
So how can this be considered a bug? You know the rules but call it a bug anyway? :shock:

Re: [PB5.30] IDE : Comments start by -

Posted: Tue Aug 12, 2014 1:27 am
by Danilo
It does not work!

Code: Select all

;__-=[ Comment ]=-__
:wink: :D

Re: [PB5.30] IDE : Comments start by -

Posted: Tue Aug 12, 2014 10:03 am
by Le Soldat Inconnu
PB wrote:> When a comment start by a "-", comment is consider as a "title" in procedure list

Correct. Been that way forever.

> But in this code, comment is not a title
> ;{- Title

Are you serious? The comment doesn't start with "-" but with "{", as you just noted.
So how can this be considered a bug? You know the rules but call it a bug anyway? :shock:
";{" and ";}" are in Folding Keyword. May be i add it, i don't reminds if it's a default folding option. I come from jaPBe and it's done like this on jaPBe ...

So i try something else. I set ";{", ";-{" and ";}" in Folding Keyword.

Code: Select all

;-{ Title
If Truc = Bidule
  Truc + 1
EndIf
;}
So now, i get Title. OK, it' a way.

But i get problem with issues list

Code: Select all

;-> Création des pages
;> toto
Second line get color with regular expression "^{?>.*" but first not. My comment start by ">" or "->"

Code: Select all

; Toto
;- Toto
The same, with regular expression "Toto", second line don't take background color