Merge branch 'main' into pr/212

This commit is contained in:
Shunsuke Shibayama 2022-11-13 19:57:20 +09:00
commit a4d5b09df9
14 changed files with 242 additions and 114 deletions

View file

@ -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;