mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
Update parse.rs
This commit is contained in:
parent
d52c10e2f0
commit
ebd528ec47
1 changed files with 2 additions and 2 deletions
|
@ -1458,7 +1458,7 @@ impl Parser {
|
|||
match self.lpop() {
|
||||
symbol if symbol.is(Symbol) => {
|
||||
let Some(ExprOrOp::Expr(obj)) = stack.pop() else {
|
||||
let err = self.skip_and_throw_syntax_err(line!(), caused_by!());
|
||||
let err = self.skip_and_throw_syntax_err(line!(), caused_by!());
|
||||
self.errs.push(err);
|
||||
debug_exit_info!(self);
|
||||
return Err(());
|
||||
|
@ -1525,7 +1525,7 @@ impl Parser {
|
|||
match self.lpop() {
|
||||
symbol if symbol.is(Symbol) => {
|
||||
let Some(ExprOrOp::Expr(obj)) = stack.pop() else {
|
||||
let err = self.skip_and_throw_syntax_err(line!(), caused_by!());
|
||||
let err = self.skip_and_throw_syntax_err(line!(), caused_by!());
|
||||
self.errs.push(err);
|
||||
debug_exit_info!(self);
|
||||
return Err(());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue