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:
parent
5cb25a3872
commit
c167ba0976
1 changed files with 1 additions and 0 deletions
|
@ -227,6 +227,7 @@ public class ExpressionParser implements IExpressionParser, IParserData {
|
||||||
try {
|
try {
|
||||||
if (firstErrorOffset == FIRST_ERROR_OFFSET_UNSET)
|
if (firstErrorOffset == FIRST_ERROR_OFFSET_UNSET)
|
||||||
firstErrorOffset = LA(1).getOffset();
|
firstErrorOffset = LA(1).getOffset();
|
||||||
|
consume(); // get past this token
|
||||||
} catch (EndOfFileException eof) {
|
} catch (EndOfFileException eof) {
|
||||||
// do nothing
|
// do nothing
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Add table
Reference in a new issue