mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Don't require indenting alternative when
patterns
This commit is contained in:
parent
28e0a9e382
commit
d67d118e61
1 changed files with 2 additions and 2 deletions
|
@ -2085,7 +2085,7 @@ mod when {
|
|||
}
|
||||
}
|
||||
|
||||
/// Parsing alternative patterns in when branches.
|
||||
/// Parsing alternative patterns in `when` branches.
|
||||
fn branch_alternatives<'a>(
|
||||
min_indent: u32,
|
||||
options: ExprParseOptions,
|
||||
|
@ -2180,7 +2180,7 @@ mod when {
|
|||
|
||||
let parser = sep_by1(
|
||||
word1(b'|', EWhen::Bar),
|
||||
branch_single_alternative(pattern_indent + 1),
|
||||
branch_single_alternative(pattern_indent),
|
||||
);
|
||||
|
||||
match parser.parse(arena, state) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue