From 3d5c2db0674c840c38f81e0c7e38632c63fc3ab0 Mon Sep 17 00:00:00 2001 From: Hannes Bredberg Date: Thu, 31 Aug 2023 22:47:44 +0200 Subject: [PATCH] ';' after local_var_decl --- selfhost/parser.n | 1 + 1 file changed, 1 insertion(+) diff --git a/selfhost/parser.n b/selfhost/parser.n index 9febcf0..843df16 100644 --- a/selfhost/parser.n +++ b/selfhost/parser.n @@ -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) {