From d4e0bdc1e041f1f3d042d66afbead2d103f9e926 Mon Sep 17 00:00:00 2001 From: SrTobi Date: Wed, 28 Aug 2019 14:30:36 +0200 Subject: [PATCH] =?UTF-8?q?Added=20missing=20=E2=80=99=20in=20grammar=20fo?= =?UTF-8?q?r=20GivenBody?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/internals/syntax.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/internals/syntax.md b/docs/docs/internals/syntax.md index bf0b5bf9892c..f9827b255162 100644 --- a/docs/docs/internals/syntax.md +++ b/docs/docs/internals/syntax.md @@ -385,7 +385,7 @@ ConstrMods ::= {Annotation} [AccessModifier] ObjectDef ::= id [Template] ModuleDef(mods, name, template) // no constructor EnumDef ::= id ClassConstr InheritClauses EnumBody EnumDef(mods, name, tparams, template) GivenDef ::= [id] [DefTypeParamClause] GivenBody -GivenBody ::= [‘as ConstrApp {‘,’ ConstrApp }] {GivenParamClause} [TemplateBody] +GivenBody ::= [‘as’ ConstrApp {‘,’ ConstrApp }] {GivenParamClause} [TemplateBody] | ‘as’ Type {GivenParamClause} ‘=’ Expr | ‘(’ DefParam ‘)’ TemplateBody Template ::= InheritClauses [TemplateBody] Template(constr, parents, self, stats)