zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 5de92425d57338ba6c94a90360f96eb2fa8efdda (tree)
parent ff4a03f35157c3c82d581a599bf98db86504ecc1
Author: kristopher tate <kt@connectfree.co.jp>
Date:   Thu,  2 Aug 2018 17:11:37 +0900

src/parser.cpp: fix typo from rebase;

Diffstat:
Msrc/parser.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/parser.cpp b/src/parser.cpp @@ -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);