@@ -223,7 +223,8 @@ Expr1 ::= [‘inline’] ‘if’ ‘(’ Expr ‘)’ {nl} Expr [[
223223 | ‘return’ [Expr] Return(expr?)
224224 | ForExpr
225225 | [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)
227228 | PostfixExpr [Ascription]
228229 | ‘inline’ InfixExpr MatchClause
229230Ascription ::= ‘:’ InfixType Typed(expr, tp)
@@ -235,7 +236,8 @@ InfixExpr ::= PrefixExpr
235236 | InfixExpr id ‘:’ IndentedExpr
236237 | InfixExpr MatchClause
237238MatchClause ::= ‘match’ <<< CaseClauses >>> Match(expr, cases)
238- PrefixExpr ::= [‘-’ | ‘+’ | ‘~’ | ‘!’] SimpleExpr PrefixOp(expr, op)
239+ PrefixExpr ::= [PrefixOperator] SimpleExpr PrefixOp(expr, op)
240+ PrefixOperator ::= ‘-’ | ‘+’ | ‘~’ | ‘!’
239241SimpleExpr ::= SimpleRef
240242 | Literal
241243 | ‘_’
@@ -250,8 +252,8 @@ SimpleExpr ::= SimpleRef
250252 | SimpleExpr ‘.’ MatchClause
251253 | SimpleExpr TypeArgs TypeApply(expr, args)
252254 | 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
255257 | SimpleExpr ‘_’ PostfixOp(expr, _) (to be dropped)
256258 | XmlExpr -- to be dropped
257259IndentedExpr ::= indent CaseClauses | Block outdent
0 commit comments