Re: [fpc-pascal] Very odd case parsing problem

2013-12-29 Thread Mark Morgan Lloyd
Sven Barth wrote: On 29.12.2013 18:20, Martin Frb wrote: On 29/12/2013 17:08, Martin Frb wrote: On 29/12/2013 16:37, Sven Barth wrote: Does Lazarus recognize "otherwise" as an alternative for "else" inside a "case"-statement as well? Not yet Now 1.3 does Great! :) Ruefully agrees :-)

Re: [fpc-pascal] Very odd case parsing problem

2013-12-29 Thread Sven Barth
On 29.12.2013 18:20, Martin Frb wrote: On 29/12/2013 17:08, Martin Frb wrote: On 29/12/2013 16:37, Sven Barth wrote: Does Lazarus recognize "otherwise" as an alternative for "else" inside a "case"-statement as well? Not yet Now 1.3 does Great! :) Regards, Sven _

Re: [fpc-pascal] Very odd case parsing problem

2013-12-29 Thread Martin Frb
On 29/12/2013 17:08, Martin Frb wrote: On 29/12/2013 16:37, Sven Barth wrote: Does Lazarus recognize "otherwise" as an alternative for "else" inside a "case"-statement as well? Not yet Now 1.3 does ___ fpc-pascal maillist - fpc-pascal@lists.fre

Re: [fpc-pascal] Very odd case parsing problem

2013-12-29 Thread Martin Frb
On 29/12/2013 16:37, Sven Barth wrote: Does Lazarus recognize "otherwise" as an alternative for "else" inside a "case"-statement as well? Not yet ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinf

Re: [fpc-pascal] Very odd case parsing problem

2013-12-29 Thread Sven Barth
On 29.12.2013 15:06, Martin Frb wrote: On 29/12/2013 07:33, Mark Morgan Lloyd wrote: Saunders, Rich wrote: On 2013-12-28 15:47, Mark Morgan Lloyd wrote: quit_: if High(lexemeListArray) = 1 then begin end; nop: begin end else Drat- a dang

Re: [fpc-pascal] Very odd case parsing problem

2013-12-29 Thread Mark Morgan Lloyd
Martin Frb wrote: Drat- a dangling else in a case! I should have spotted that, but instead spent an hour or so picking at it. 1) If you use Lazarus then you can have case-labels highlighted (e.g add underline/border, blend foreground by mixing in another color, bold, ...) It is in the color

Re: [fpc-pascal] Very odd case parsing problem

2013-12-29 Thread Martin Frb
On 29/12/2013 07:33, Mark Morgan Lloyd wrote: Saunders, Rich wrote: On 2013-12-28 15:47, Mark Morgan Lloyd wrote: quit_: if High(lexemeListArray) = 1 then begin end; nop: begin end else Drat- a dangling else in a case! I should have spotte

Re: [fpc-pascal] Very odd case parsing problem

2013-12-29 Thread Saunders, Rich
On 2013-12-28 15:47, Mark Morgan Lloyd wrote: I can fix that either by putting a semicolon before the else- which I believe is strictly incorrect- or by putting begin/end around that conditional, or by inserting a dummy statement before the else like quit_: if High(lexemeListArray) =

Re: [fpc-pascal] Very odd case parsing problem

2013-12-28 Thread Mark Morgan Lloyd
Saunders, Rich wrote: On 2013-12-28 15:47, Mark Morgan Lloyd wrote: I can fix that either by putting a semicolon before the else- which I believe is strictly incorrect- or by putting begin/end around that conditional, or by inserting a dummy statement before the else like quit_: if

[fpc-pascal] Very odd case parsing problem

2013-12-28 Thread Mark Morgan Lloyd
I've been wrestling with something for a chunk of the early evening, which is reproducible in situ but not in a cut-down test program. Using 2.6.2 on x86 Linux in objfpc mode, a case statement that looks like this fails to parse: try case parseCommand(selector) of help:beg