mirror of
https://github.com/CPunch/Cosmo.git
synced 2024-11-26 00:50:14 +00:00
fixed lexer errors
This commit is contained in:
parent
9ccb258a93
commit
e784933517
@ -152,11 +152,7 @@ static void advance(CParseState *pstate) {
|
|||||||
pstate->current = cosmoL_scanToken(pstate->lex);
|
pstate->current = cosmoL_scanToken(pstate->lex);
|
||||||
|
|
||||||
if (pstate->current.type == TOKEN_ERROR) {
|
if (pstate->current.type == TOKEN_ERROR) {
|
||||||
// go ahead and consume the rest of the errors so it doesn't cascade
|
errorAtCurrent(pstate, pstate->current.start);
|
||||||
CToken temp;
|
|
||||||
do {
|
|
||||||
temp = cosmoL_scanToken(pstate->lex);
|
|
||||||
} while(temp.type == TOKEN_ERROR);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user