Skip to content

Commit ba6af8e

Browse files
author
Jendrik Wenke
committed
Fix quotes in syntax
1 parent 990469e commit ba6af8e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/docs/internals/syntax.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,11 @@ ClassQualifier ::= ‘[’ id ‘]’
120120
Type ::= [FunArgMods] FunArgTypes ‘=>’ Type Function(ts, t)
121121
| HkTypeParamClause ‘=>’ Type TypeLambda(ps, t)
122122
| InfixType
123-
FunArgMods ::= { `implicit` | `erased` }
123+
FunArgMods ::= { implicit | erased }
124124
FunArgTypes ::= InfixType
125125
| ‘(’ [ FunArgType {‘,’ FunArgType } ] ‘)’
126-
| '(' TypedFunParam {',' TypedFunParam } ')'
127-
TypedFunParam ::= id ':' Type
126+
| ‘(’ TypedFunParam {‘,’ TypedFunParam } ‘)’
127+
TypedFunParam ::= id ‘:’ Type
128128
InfixType ::= RefinedType {id [nl] RefinedType} InfixOp(t1, op, t2)
129129
RefinedType ::= WithType {[nl] Refinement} RefinedTypeTree(t, ds)
130130
WithType ::= AnnotType {‘with’ AnnotType} (deprecated)
@@ -328,12 +328,12 @@ DefDef ::= DefSig [‘:’ Type] ‘=’ Expr
328328
329329
TmplDef ::= ([‘case’] ‘class’ | trait’) ClassDef
330330
| [‘case’] ‘object’ ObjectDef
331-
| `enum' EnumDef
331+
| enum EnumDef
332332
ClassDef ::= id ClassConstr TemplateOpt ClassDef(mods, name, tparams, templ)
333333
ClassConstr ::= [ClsTypeParamClause] [ConstrMods] ClsParamClauses with DefDef(_, <init>, Nil, vparamss, EmptyTree, EmptyTree) as first stat
334334
ConstrMods ::= {Annotation} [AccessModifier]
335335
ObjectDef ::= id TemplateOpt ModuleDef(mods, name, template) // no constructor
336-
EnumDef ::= id ClassConstr [`extends' [ConstrApps]] EnumBody EnumDef(mods, name, tparams, template)
336+
EnumDef ::= id ClassConstr [extends [ConstrApps]] EnumBody EnumDef(mods, name, tparams, template)
337337
TemplateOpt ::= [‘extends’ Template | [nl] TemplateBody]
338338
Template ::= ConstrApps [TemplateBody] | TemplateBody Template(constr, parents, self, stats)
339339
ConstrApps ::= ConstrApp {‘with’ ConstrApp}
@@ -355,7 +355,7 @@ SelfType ::= id [‘:’ InfixType] ‘=>’
355355
EnumBody ::= [nl] ‘{’ [SelfType] EnumStat {semi EnumStat} ‘}’
356356
EnumStat ::= TemplateStat
357357
| {Annotation [nl]} {Modifier} EnumCase
358-
EnumCase ::= `case' (id ClassConstr [`extends' ConstrApps]] | ids)
358+
EnumCase ::= case (id ClassConstr [extends ConstrApps]] | ids)
359359
360360
TopStatSeq ::= TopStat {semi TopStat}
361361
TopStat ::= {Annotation [nl]} {Modifier} TmplDef

0 commit comments

Comments
 (0)