mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
don't lie about progress
This commit is contained in:
parent
2a0c5c669b
commit
369f1b7cbb
2 changed files with 48 additions and 2 deletions
|
@ -1753,12 +1753,12 @@ mod when {
|
|||
match space0_e(0, When::Space, When::IndentPattern).parse(arena, state) {
|
||||
Err((MadeProgress, fail, _)) => Err((NoProgress, fail, initial)),
|
||||
Err((NoProgress, fail, _)) => Err((NoProgress, fail, initial)),
|
||||
Ok((_, spaces, state)) => {
|
||||
Ok((progress, spaces, state)) => {
|
||||
match pattern_indent_level {
|
||||
Some(wanted) if state.column > wanted => {
|
||||
// this branch is indented too much
|
||||
Err((
|
||||
MadeProgress,
|
||||
progress,
|
||||
When::IndentPattern(state.line, state.column),
|
||||
state,
|
||||
))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue