Merge remote-tracking branch 'origin/main' into repl

This commit is contained in:
Richard Feldman 2022-10-31 20:49:28 -04:00
commit 220c362671
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
93 changed files with 2865 additions and 1771 deletions

View file

@ -306,7 +306,7 @@ fn parse_src<'a>(arena: &'a Bump, line: &'a str) -> ParseOutcome<'a> {
_ => {
let src_bytes = line.as_bytes();
match roc_parse::expr::parse_loc_expr(0, arena, State::new(src_bytes)) {
match roc_parse::expr::parse_loc_expr(arena, State::new(src_bytes), 0) {
Ok((_, loc_expr, _)) => ParseOutcome::Expr(loc_expr.value),
// Special case some syntax errors to allow for multi-line inputs
Err((_, EExpr::Closure(EClosure::Body(_, _), _), _))