Skip to content

Commit

Permalink
';' after local_var_decl
Browse files Browse the repository at this point in the history
  • Loading branch information
N00byEdge committed Aug 31, 2023
1 parent 6fe4aed commit 3d5c2db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions selfhost/parser.n
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ fn parse_statement(context: *ParserContext) u32 {
}
context.expect("Expected '=' after variable declaration".&, .assign);
stmt_payload[1].get(result).* = parse_expression(context);
context.expect("Expected ';' after variable initialization".&, .semicolon);
return result;
}
// else if(p == .continue_keyword) {
Expand Down

0 comments on commit 3d5c2db

Please sign in to comment.