1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Remove infinite loop on catching Throwable/Exception in Parser.translationUnit().

This commit is contained in:
John Camelon 2004-06-18 19:17:29 +00:00
parent 5cb25a3872
commit c167ba0976

View file

@ -227,6 +227,7 @@ public class ExpressionParser implements IExpressionParser, IParserData {
try {
if (firstErrorOffset == FIRST_ERROR_OFFSET_UNSET)
firstErrorOffset = LA(1).getOffset();
consume(); // get past this token
} catch (EndOfFileException eof) {
// do nothing
} finally {