Skip to content

Commit 053d9fe

Browse files
traviscrossdianne
authored andcommitted
Swap order of MatchConditions alternatives
In our PEG-style grammar, the order matters, and in this case, we need `MatchGuardChain` to come after `Expression`. Thanks-to: Eric Huss <eric@huss.org>
1 parent 7abffdf commit 053d9fe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/expressions/match-expr.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ MatchArm -> OuterAttribute* Pattern MatchArmGuard?
2020
MatchArmGuard -> `if` MatchConditions
2121
2222
MatchConditions ->
23-
Expression
24-
| MatchGuardChain
23+
MatchGuardChain
24+
| Expression
2525
2626
MatchGuardChain -> MatchGuardCondition ( `&&` MatchGuardCondition )*
2727

0 commit comments

Comments
 (0)