mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Correct handling of binop with SpaceAfter in a Body def
This commit is contained in:
parent
51f2cdccf7
commit
7f1b3449a6
10 changed files with 172 additions and 5 deletions
|
@ -4028,7 +4028,7 @@ enum OperatorOrDef {
|
|||
}
|
||||
|
||||
fn bin_op<'a>(check_for_defs: bool) -> impl Parser<'a, BinOp, EExpr<'a>> {
|
||||
move |_, state: State<'a>, min_indent| {
|
||||
(move |_, state: State<'a>, min_indent| {
|
||||
let start = state.pos();
|
||||
let (_, op, state) = operator_help(EExpr::Start, EExpr::BadOperator, state, min_indent)?;
|
||||
let err_progress = if check_for_defs {
|
||||
|
@ -4046,7 +4046,8 @@ fn bin_op<'a>(check_for_defs: bool) -> impl Parser<'a, BinOp, EExpr<'a>> {
|
|||
Err((err_progress, EExpr::BadOperator(":=", start)))
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
.trace("bin_op")
|
||||
}
|
||||
|
||||
fn operator<'a>() -> impl Parser<'a, OperatorOrDef, EExpr<'a>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue