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
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?

Re: [PB5.30] IDE : Comments start by -
Posted: Tue Aug 12, 2014 1:27 am
by Danilo
It does not work!

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?

";{" 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
Second line get color with regular expression "^{?>.*" but first not. My comment start by ">" or "->"
The same, with regular expression "Toto", second line don't take background color