src/parser.cpp: fix typo from rebase;

master
kristopher tate 2018-08-02 17:11:37 +09:00
parent ff4a03f351
commit 5de92425d5
1 changed files with 1 additions and 1 deletions

View File

@ -655,7 +655,7 @@ static AstNode *ast_parse_suspend_block(ParseContext *pc, size_t *token_index, b
Token *token = &pc->tokens->at(*token_index);
Token *suspend_token = nullptr;
if (suspend_token->id == TokenIdKeywordSuspend) {
if (token->id == TokenIdKeywordSuspend) {
*token_index += 1;
suspend_token = token;
token = &pc->tokens->at(*token_index);