From 5560de29043908588978b2ce4384a769eb08e471 Mon Sep 17 00:00:00 2001 From: omicron Date: Wed, 9 Apr 2025 01:15:51 +0200 Subject: [PATCH] Make sure parse skips past initial trivia in the tokenlist --- src/parser/parser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/parser/parser.c b/src/parser/parser.c index 0476666..5f96681 100644 --- a/src/parser/parser.c +++ b/src/parser/parser.c @@ -136,5 +136,6 @@ parse_result_t parse_statement(tokenlist_entry_t *current) { } parse_result_t parse(tokenlist_entry_t *current) { + current = tokenlist_skip_trivia(current); return parse_many(current, NODE_PROGRAM, true, parse_statement); }