Skip to content

Commit

Permalink
Use right associativity for ternary operator
Browse files Browse the repository at this point in the history
  • Loading branch information
fvictorio committed Nov 24, 2023
1 parent 4a2d6bb commit 37f9f9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Solidity.g4
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ expression
| expression ('==' | '!=') expression
| expression '&&' expression
| expression '||' expression
| expression '?' expression ':' expression
| <assoc=right> expression '?' expression ':' expression
| expression ('=' | '|=' | '^=' | '&=' | '<<=' | '>>=' | '+=' | '-=' | '*=' | '/=' | '%=') expression
| primaryExpression ;

Expand Down

0 comments on commit 37f9f9c

Please sign in to comment.