We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06a5237 commit 0c7adb8Copy full SHA for 0c7adb8
grammar.js
@@ -3,6 +3,7 @@ const PREC = {
3
using_directive: 2,
4
control: 1,
5
stable_type_id: 2,
6
+ then: 2,
7
while: 2,
8
assign: 3,
9
case: 3,
@@ -1134,14 +1135,17 @@ module.exports = grammar({
1134
1135
),
1136
1137
_if_condition: $ =>
- choice(
1138
- $.parenthesized_expression,
1139
- $._then_condition,
+ prec.right(
+ PREC.then,
1140
+ choice(
1141
+ $.parenthesized_expression,
1142
+ $._then_condition,
1143
+ )
1144
1145
1146
_then_condition: $ =>
1147
prec.right(
- PREC.control,
1148
1149
seq($._indentable_expression, "then"),
1150
1151
0 commit comments