mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 10:58:16 +02:00
parent
e2d0c4d4f6
commit
15f0c7aa65
@ -2816,8 +2816,16 @@ begin
|
||||
end else
|
||||
RaiseStrExpectedWithBlockStartHint('"if"');
|
||||
end else if UpAtomIs('ELSE') then begin
|
||||
if (BlockType=ebtIf) and (IfType=itThen) then begin
|
||||
IfType:=itElse;
|
||||
if (BlockType=ebtIf) then begin
|
||||
if (IfType=itThen) then
|
||||
IfType:=itElse
|
||||
else if IfType=itElse then begin
|
||||
// e.g. if then if then else |else ;
|
||||
CloseNode;
|
||||
UndoReadNextAtom;
|
||||
break;
|
||||
end else
|
||||
RaiseStrExpectedWithBlockStartHint('"then"');
|
||||
end else if BlockType=ebtCase then begin
|
||||
end else
|
||||
RaiseStrExpectedWithBlockStartHint('"if"');
|
||||
|
Loading…
Reference in New Issue
Block a user