Make sure parse skips past initial trivia in the tokenlist
This commit is contained in:
parent
2bea87b39a
commit
5560de2904
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user