* Fix never-ending loop

This commit is contained in:
Michaël Van Canneyt 2023-05-21 21:28:56 +02:00
parent 8ae016fb85
commit a99575b74c

View File

@ -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