guess what, it CAN happen
This commit is contained in:
parent
35167781cd
commit
e6b0294807
1 changed files with 2 additions and 2 deletions
|
@ -401,9 +401,9 @@ if_stmt_expr(ParserState *ps)
|
|||
return tree;
|
||||
Assert(next.id == T_ELSE || next.id == T_ELIF);
|
||||
break;
|
||||
default: /* shouldn't happen */
|
||||
default:
|
||||
lex_backup(ps->lexer, next);
|
||||
parse_error(ps, "huh?: %s", TokenIdStr[next.id]);
|
||||
parse_error(ps, "expected 'elif' or 'else', got '%s'", TokenIdStr[next.id]);
|
||||
return nil;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue