mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 21:44:34 +00:00
Update parse.rs
This commit is contained in:
parent
33edcd2e1c
commit
4e9dbe0e98
1 changed files with 2 additions and 0 deletions
|
@ -1765,6 +1765,8 @@ impl Parser {
|
|||
let err = self.skip_and_throw_syntax_err(caused_by!());
|
||||
self.errs.push(err);
|
||||
return Err(());
|
||||
} else if self.cur_is(RParen) {
|
||||
break;
|
||||
}
|
||||
match self.try_reduce_arg(false).map_err(|_| self.stack_dec())? {
|
||||
PosOrKwArg::Pos(arg) => match arg.expr {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue