@@ -223,7 +223,8 @@ Expr1 ::= [‘inline’] ‘if’ ‘(’ Expr ‘)’ {nl} Expr [[
223
223
| ‘return’ [Expr] Return(expr?)
224
224
| ForExpr
225
225
| [SimpleExpr ‘.’] id ‘=’ Expr Assign(expr, expr)
226
- | SimpleExpr1 ArgumentExprs ‘=’ Expr Assign(expr, expr)
226
+ | PrefixOperator SimpleExpr ‘=’ Expr Assign(expr, expr)
227
+ | SimpleExpr ArgumentExprs ‘=’ Expr Assign(expr, expr)
227
228
| PostfixExpr [Ascription]
228
229
| ‘inline’ InfixExpr MatchClause
229
230
Ascription ::= ‘:’ InfixType Typed(expr, tp)
@@ -235,7 +236,8 @@ InfixExpr ::= PrefixExpr
235
236
| InfixExpr id ‘:’ IndentedExpr
236
237
| InfixExpr MatchClause
237
238
MatchClause ::= ‘match’ <<< CaseClauses >>> Match(expr, cases)
238
- PrefixExpr ::= [‘-’ | ‘+’ | ‘~’ | ‘!’] SimpleExpr PrefixOp(expr, op)
239
+ PrefixExpr ::= [PrefixOperator] SimpleExpr PrefixOp(expr, op)
240
+ PrefixOperator ::= ‘-’ | ‘+’ | ‘~’ | ‘!’
239
241
SimpleExpr ::= SimpleRef
240
242
| Literal
241
243
| ‘_’
@@ -250,8 +252,8 @@ SimpleExpr ::= SimpleRef
250
252
| SimpleExpr ‘.’ MatchClause
251
253
| SimpleExpr TypeArgs TypeApply(expr, args)
252
254
| SimpleExpr ArgumentExprs Apply(expr, args)
253
- | SimpleExpr1 ‘:’ IndentedExpr -- under language.experimental.fewerBraces
254
- | SimpleExpr1 FunParams (‘=>’ | ‘?=>’) IndentedExpr -- under language.experimental.fewerBraces
255
+ | SimpleExpr ‘:’ IndentedExpr -- under language.experimental.fewerBraces
256
+ | SimpleExpr FunParams (‘=>’ | ‘?=>’) IndentedExpr -- under language.experimental.fewerBraces
255
257
| SimpleExpr ‘_’ PostfixOp(expr, _) (to be dropped)
256
258
| XmlExpr -- to be dropped
257
259
IndentedExpr ::= indent CaseClauses | Block outdent
0 commit comments