Make sure parse skips past initial trivia in the tokenlist

This commit is contained in:
omicron 2025-04-09 01:15:51 +02:00
parent 2bea87b39a
commit 5560de2904

View File

@ -136,5 +136,6 @@ parse_result_t parse_statement(tokenlist_entry_t *current) {
} }
parse_result_t parse(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); return parse_many(current, NODE_PROGRAM, true, parse_statement);
} }