mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 08:09:18 +02:00
* Fix never-ending loop
This commit is contained in:
parent
8ae016fb85
commit
a99575b74c
@ -6166,7 +6166,9 @@ var
|
|||||||
tkBraceOpen,tkSquaredBraceOpen,
|
tkBraceOpen,tkSquaredBraceOpen,
|
||||||
tkMinus,tkPlus,tkinherited
|
tkMinus,tkPlus,tkinherited
|
||||||
];
|
];
|
||||||
Result:=TryErrorRecovery(CreateRecovery(E,RestartTokens));
|
Result:=(Curtoken<>tkEOF);
|
||||||
|
if Result then
|
||||||
|
Result:=TryErrorRecovery(CreateRecovery(E,RestartTokens,false));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
var
|
var
|
||||||
|
Loading…
Reference in New Issue
Block a user