Fix infinite loop bug
This commit is contained in:
@@ -246,6 +246,7 @@ Module* parser_parse(TokenStream* ts) {
|
||||
is_public = true;
|
||||
} else {
|
||||
log_on_line(&p->token.location, "unexpected token");
|
||||
goto fail;
|
||||
}
|
||||
} while (!terminal);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user