diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-07-30 22:26:22 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-07-30 22:26:22 +0100 |
| commit | 8987a6630c8ec43da770dd92c10f6b92e17201f2 (patch) | |
| tree | 9233cacae498d1321edc94470c1549012091dcf0 /src/parser.cpp | |
| parent | 10ff8e042606d44049f4cb91c372d0da2a83ed65 (diff) | |
v0.6.0v0.6.0
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index e95b606b1..3ae3f767e 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -3262,7 +3262,7 @@ AstNode *parse_value_decl(AstFile *f, Array<AstNode *> names, CommentGroup docs) AstNode *type = nullptr; Array<AstNode *> values = {}; - Token colon = expect_token_after(f, Token_Colon, "identifier list"); + expect_token_after(f, Token_Colon, "identifier list"); if (f->curr_token.kind == Token_type) { type = ast_type_type(f, advance_token(f), nullptr); is_mutable = false; @@ -3378,7 +3378,7 @@ AstNode *parse_simple_stmt(AstFile *f, StmtAllowFlag flags) { switch (next) { case Token_for: case Token_match: { - advance_token(f); + expect_token_after(f, Token_Colon, "identifier list"); AstNode *name = lhs[0]; AstNode *label = ast_label_decl(f, ast_node_token(name), name); AstNode *stmt = parse_stmt(f); @@ -5092,7 +5092,7 @@ ParseFileError parse_files(Parser *p, String init_filename) { p->init_fullpath = init_fullpath; -#if 1 +#if USE_THREADED_PARSER isize thread_count = gb_max(build_context.thread_count, 1); if (thread_count > 1) { Array<gbThread> worker_threads = {}; |