[fpc-pascal] Very odd case parsing problem

Sven Barth pascaldragon at googlemail.com
Sun Dec 29 17:37:18 CET 2013

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 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 config.
> That will (in this case) not highlight the else, so you will know the
> else is part of the if.

Does Lazarus recognize "otherwise" as an alternative for "else" inside a 
"case"-statement as well?


More information about the fpc-pascal mailing list