Front-ends: Remove now defunct afterEOF and related, use scanner's instead.
Code using atEndOfFile was dead, instead do something useful with the scanners atEndOfInput(). This allows a better error message for early termination of cascading errors.
This commit is contained in:
parent
830b0cc98b
commit
5e56423046
9 changed files with 14 additions and 19 deletions
|
|
@ -762,12 +762,8 @@ const char* TPpContext::tokenize(TPpToken* ppToken)
|
|||
break;
|
||||
}
|
||||
|
||||
if (tokenString) {
|
||||
if (tokenString[0] != 0)
|
||||
parseContext.tokensBeforeEOF = 1;
|
||||
|
||||
if (tokenString)
|
||||
return tokenString;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue