Make sure parse skips past initial trivia in the tokenlist
This commit is contained in:
1 parent
2bea87b39a
commit
5560de2904
1 file changed
+1
@@ -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);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user