Fix minor bugs

* Fix Lambda parsing bugs
* Fix a bug that is registered as parameters instead of variables
* Fix Lambda formatting
This commit is contained in:
Shunsuke Shibayama 2022-08-28 10:34:12 +09:00
parent 259ba2c172
commit 49fb4848a2
6 changed files with 9 additions and 15 deletions

View file

@ -1645,10 +1645,6 @@ impl Parser {
self.errs.push(err);
return Err(());
}
// REVIEW: need this?
while self.cur_is(Newline) {
self.skip();
}
let body = self.try_reduce_block().map_err(|_| self.stack_dec())?;
self.counter.inc();
self.level -= 1;