mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Fix parser being stuck in eager macro inputs
This commit is contained in:
parent
05b0612051
commit
9ac88d8d36
4 changed files with 45 additions and 2 deletions
|
@ -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![,]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue