Skip to content

Commit

Permalink
where precedence according to carbon-language#4075
Browse files Browse the repository at this point in the history
  • Loading branch information
josh11b committed Aug 23, 2024
1 parent e83b1da commit 471c5fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions toolchain/parse/precedence.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ struct OperatorPriorityTable {
MarkHigherThan({Multiplicative}, {Additive});
MarkHigherThan(
{Additive, Modulo, BitwiseAnd, BitwiseOr, BitwiseXor, BitShift},
{Relational});
{Relational, Where});
MarkHigherThan({Relational, LogicalPrefix}, {LogicalAnd, LogicalOr});
MarkHigherThan({As, LogicalAnd, LogicalOr}, {If});
MarkHigherThan({As, LogicalAnd, LogicalOr, Where}, {If});
MarkHigherThan({If}, {Assignment});
MarkHigherThan({Assignment, IncrementDecrement}, {Lowest});

Expand Down

0 comments on commit 471c5fb

Please sign in to comment.