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