Skip to content

Fix quotes in syntax #4144

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 20, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions docs/docs/internals/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ ClassQualifier ::= ‘[’ id ‘]’
Type ::= [FunArgMods] FunArgTypes ‘=>’ Type Function(ts, t)
| HkTypeParamClause ‘=>’ Type TypeLambda(ps, t)
| InfixType
FunArgMods ::= { `implicit` | `erased` }
FunArgMods ::= { implicit | erased }
FunArgTypes ::= InfixType
| ‘(’ [ FunArgType {‘,’ FunArgType } ] ‘)’
| '(' TypedFunParam {',' TypedFunParam } ')'
TypedFunParam ::= id ':' Type
| ‘(’ TypedFunParam {‘,’ TypedFunParam } ‘)’
TypedFunParam ::= id ‘:’ Type
InfixType ::= RefinedType {id [nl] RefinedType} InfixOp(t1, op, t2)
RefinedType ::= WithType {[nl] Refinement} RefinedTypeTree(t, ds)
WithType ::= AnnotType {‘with’ AnnotType} (deprecated)
Expand Down Expand Up @@ -326,14 +326,14 @@ DefDef ::= DefSig [‘:’ Type] ‘=’ Expr
| ‘this’ DefParamClause DefParamClauses DefDef(_, <init>, Nil, vparamss, EmptyTree, expr | Block)
(‘=’ ConstrExpr | [nl] ConstrBlock)

TmplDef ::= ([‘case’] ‘class’ | trait’) ClassDef
TmplDef ::= ([‘case’] ‘class’ | trait’) ClassDef
| [‘case’] ‘object’ ObjectDef
| `enum' EnumDef
| enum EnumDef
ClassDef ::= id ClassConstr TemplateOpt ClassDef(mods, name, tparams, templ)
ClassConstr ::= [ClsTypeParamClause] [ConstrMods] ClsParamClauses with DefDef(_, <init>, Nil, vparamss, EmptyTree, EmptyTree) as first stat
ConstrMods ::= {Annotation} [AccessModifier]
ObjectDef ::= id TemplateOpt ModuleDef(mods, name, template) // no constructor
EnumDef ::= id ClassConstr [`extends' [ConstrApps]] EnumBody EnumDef(mods, name, tparams, template)
EnumDef ::= id ClassConstr [extends [ConstrApps]] EnumBody EnumDef(mods, name, tparams, template)
TemplateOpt ::= [‘extends’ Template | [nl] TemplateBody]
Template ::= ConstrApps [TemplateBody] | TemplateBody Template(constr, parents, self, stats)
ConstrApps ::= ConstrApp {‘with’ ConstrApp}
Expand All @@ -355,7 +355,7 @@ SelfType ::= id [‘:’ InfixType] ‘=>’
EnumBody ::= [nl] ‘{’ [SelfType] EnumStat {semi EnumStat} ‘}’
EnumStat ::= TemplateStat
| {Annotation [nl]} {Modifier} EnumCase
EnumCase ::= `case' (id ClassConstr [`extends' ConstrApps]] | ids)
EnumCase ::= case (id ClassConstr [extends ConstrApps]] | ids)

TopStatSeq ::= TopStat {semi TopStat}
TopStat ::= {Annotation [nl]} {Modifier} TmplDef
Expand Down