Commit abc27f3
committed
Replace dynamic with additional node
**Problem**
350 introduced a dynamic precedence to resolve
the conflict of Scala 2 and Scala 3 grammar for if-then.
**Solution**
This removes the dynamic precedence and replaces it
with prec.right around `then` side.
**Note**
There's a report of parser getting stuck #392 and and
I was hoping that removing dynamic precedence would
fix that, but it didn't seem to.1 parent de465b0 commit abc27f3
1 file changed
+11
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
1133 | 1134 | | |
1134 | 1135 | | |
1135 | 1136 | | |
1136 | | - | |
1137 | | - | |
1138 | | - | |
1139 | | - | |
1140 | 1137 | | |
1141 | | - | |
1142 | | - | |
| 1138 | + | |
| 1139 | + | |
1143 | 1140 | | |
1144 | 1141 | | |
1145 | | - | |
1146 | | - | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
1147 | 1150 | | |
1148 | 1151 | | |
1149 | 1152 | | |
| |||
0 commit comments