diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-04-02 22:03:52 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-04-02 22:03:52 +0100 |
| commit | 382a5ca6a27ea0f6dde4c0783d55f5dca8ac2575 (patch) | |
| tree | fc7b7592651b166bdbbf7334649b062d584231e9 /src/parser.c | |
| parent | 96e8bb5b6f3c8d2cf2b0fae8c7a9c710c4e9dbb0 (diff) | |
Update and regression test old demos
Diffstat (limited to 'src/parser.c')
| -rw-r--r-- | src/parser.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parser.c b/src/parser.c index 5169bd7bf..a9cae2710 100644 --- a/src/parser.c +++ b/src/parser.c @@ -2272,6 +2272,7 @@ AstNode *parse_value_decl(AstFile *f, AstNodeArray lhs) { } + AstNode *parse_simple_stmt(AstFile *f, bool in_stmt_ok) { AstNodeArray lhs = parse_lhs_expr_list(f); Token token = f->curr_token; @@ -3290,7 +3291,7 @@ AstNode *parse_stmt(AstFile *f) { return ast_using_stmt(f, token, list); } - AstNode *decl = parse_simple_stmt(f, false); + AstNode *decl = parse_value_decl(f, list); expect_semicolon(f, decl); if (decl->kind == AstNode_ValueDecl) { |