mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 12:24:45 +00:00
Merge branch 'main' into pr/212
This commit is contained in:
commit
a4d5b09df9
14 changed files with 242 additions and 114 deletions
|
@ -273,7 +273,14 @@ impl Parser {
|
|||
chunks.push(expr);
|
||||
}
|
||||
}
|
||||
None => switch_unreachable!(),
|
||||
None => {
|
||||
if !self.errs.is_empty() {
|
||||
self.level -= 1;
|
||||
return Err(());
|
||||
} else {
|
||||
switch_unreachable!()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
self.level -= 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue