From a52ac3563291caf7ae3fee3f129df0d753cd4fce Mon Sep 17 00:00:00 2001 From: Som Snytt Date: Thu, 30 Jun 2022 08:44:06 -0700 Subject: [PATCH] Tweak optional using spec --- docs/_docs/internals/syntax.md | 3 ++- docs/_docs/reference/syntax.md | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/_docs/internals/syntax.md b/docs/_docs/internals/syntax.md index d780cdc5c94b..8c8f83450397 100644 --- a/docs/_docs/internals/syntax.md +++ b/docs/_docs/internals/syntax.md @@ -287,7 +287,8 @@ TypeSplice ::= spliceId ExprsInParens ::= ExprInParens {‘,’ ExprInParens} ExprInParens ::= PostfixExpr ‘:’ Type -- normal Expr allows only RefinedType here | Expr -ParArgumentExprs ::= ‘(’ [‘using’] ExprsInParens ‘)’ exprs +ParArgumentExprs ::= ‘(’ [ExprsInParens] ‘)’ exprs + | ‘(’ ‘using’ ExprsInParens ‘)’ | ‘(’ [ExprsInParens ‘,’] PostfixExpr ‘*’ ‘)’ exprs :+ Typed(expr, Ident(wildcardStar)) ArgumentExprs ::= ParArgumentExprs | BlockExpr diff --git a/docs/_docs/reference/syntax.md b/docs/_docs/reference/syntax.md index cabb9d9546ae..2072da165966 100644 --- a/docs/_docs/reference/syntax.md +++ b/docs/_docs/reference/syntax.md @@ -275,7 +275,8 @@ ExprSplice ::= spliceId ExprsInParens ::= ExprInParens {‘,’ ExprInParens} ExprInParens ::= PostfixExpr ‘:’ Type | Expr -ParArgumentExprs ::= ‘(’ [‘using’] ExprsInParens ‘)’ +ParArgumentExprs ::= ‘(’ [ExprsInParens] ‘)’ + | ‘(’ ‘using’ ExprsInParens ‘)’ | ‘(’ [ExprsInParens ‘,’] PostfixExpr ‘*’ ‘)’ ArgumentExprs ::= ParArgumentExprs | BlockExpr