mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-01 13:11:11 +00:00
fix: missing return err caused overflow
This commit is contained in:
parent
69e34bb89c
commit
4f4853244b
1 changed files with 1 additions and 0 deletions
|
@ -1171,6 +1171,7 @@ impl Parser {
|
|||
self.level -= 1;
|
||||
let err = self.skip_and_throw_syntax_err(caused_by!());
|
||||
self.errs.push(err);
|
||||
return Err(());
|
||||
}
|
||||
_ => {
|
||||
if stack.len() <= 1 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue