diff options
author | Som Snytt <som.snytt@gmail.com> | 2014-03-12 13:50:53 -0700 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2014-03-12 13:53:25 -0700 |
commit | d6142284818305bf756d588fd601dca4c8adaaf0 (patch) | |
tree | 3ae71de4ca23193e93601f8311ff40adfd1e7dfb /15-scala-syntax-summary.md | |
parent | 507e58bef8dd7d0a77247e85d3180313d44bc45e (diff) | |
download | scala-d6142284818305bf756d588fd601dca4c8adaaf0.tar.gz scala-d6142284818305bf756d588fd601dca4c8adaaf0.tar.bz2 scala-d6142284818305bf756d588fd601dca4c8adaaf0.zip |
SI-7937 In for, semi before guard never required
Align the spec with the impl.
Diffstat (limited to '15-scala-syntax-summary.md')
-rw-r--r-- | 15-scala-syntax-summary.md | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/15-scala-syntax-summary.md b/15-scala-syntax-summary.md index 0a5a8f73a0..fcf93b7ab0 100644 --- a/15-scala-syntax-summary.md +++ b/15-scala-syntax-summary.md @@ -152,11 +152,8 @@ grammar. ResultExpr ::= Expr1 | (Bindings | ([‘implicit’] id | ‘_’) ‘:’ CompoundType) ‘=>’ Block - Enumerators ::= Generator {semi Enumerator} - Enumerator ::= Generator - | Guard - | Pattern1 ‘=’ Expr - Generator ::= Pattern1 ‘<-’ Expr [Guard] + Enumerators ::= Generator {semi Generator} + Generator ::= Pattern1 ‘<-’ Expr {[semi] Guard | semi Pattern1 ‘=’ Expr} CaseClauses ::= CaseClause { CaseClause } CaseClause ::= ‘case’ Pattern [Guard] ‘=>’ Block |