Fix parser being stuck in eager macro inputs

This commit is contained in:
Lukas Wirth 2023-08-11 09:58:55 +02:00
parent 05b0612051
commit 9ac88d8d36
4 changed files with 45 additions and 2 deletions

View file

@ -184,7 +184,9 @@ pub(crate) mod entry {
};
p.bump_any();
while !p.at(EOF) && !p.at(closing_paren_kind) {
expressions::expr(p);
if expressions::expr(p).is_none() {
break;
}
if !p.at(EOF) && !p.at(closing_paren_kind) {
p.expect(T![,]);
}