fix end in expr_start

This commit is contained in:
Folkert 2021-03-13 16:05:15 +01:00
parent 8e10ed542c
commit 6214f0caa8

View file

@ -579,6 +579,7 @@ fn foobar<'a>(
dbg!(&expr);
let initial = state;
let end = state.get_position();
match dbg!(space0_e(min_indent, EExpr::Space, EExpr::IndentEnd).parse(arena, state)) {
Err((_, _, state)) => Ok((MadeProgress, expr.value, state)),
@ -589,7 +590,7 @@ fn foobar<'a>(
expr,
spaces_after: spaces_before_op,
initial,
end: state.get_position(),
end,
};
parse_expr_end(min_indent, expr_state, arena, state)