Skip to content

Commit 447e854

Browse files
committed
Fix unbalanced quoting (`') of tokens and used ‘’ instead
1 parent 9b51cb4 commit 447e854

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

compiler/src/dotty/tools/dotc/parsing/Parsers.scala

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1914,8 +1914,8 @@ object Parsers {
19141914
if (in.token == RPAREN) Nil else patterns()
19151915

19161916

1917-
/** ArgumentPatterns ::= `(' [Patterns] `)'
1918-
* | `(' [Patterns `,'] Pattern2 `:' `_' `*' ')
1917+
/** ArgumentPatterns ::= ‘(’ [Patterns] ‘)’
1918+
* | ‘(’ [Patterns ‘,’] Pattern2 ‘:’ ‘_’ ‘*’ ‘)’
19191919
*/
19201920
def argumentPatterns(): List[Tree] =
19211921
inParens(patternsOpt())
@@ -2065,18 +2065,18 @@ object Parsers {
20652065

20662066
/* -------- PARAMETERS ------------------------------------------- */
20672067

2068-
/** ClsTypeParamClause::= `[' ClsTypeParam {`,' ClsTypeParam} `]'
2069-
* ClsTypeParam ::= {Annotation} [`+' | `-']
2068+
/** ClsTypeParamClause::= ‘[’ ClsTypeParam {‘,’ ClsTypeParam} ‘]’
2069+
* ClsTypeParam ::= {Annotation} [‘+’ | ‘-’]
20702070
* id [HkTypeParamClause] TypeParamBounds
20712071
*
2072-
* DefTypeParamClause::= `[' DefTypeParam {`,' DefTypeParam} `]'
2072+
* DefTypeParamClause::= ‘[’ DefTypeParam {‘,’ DefTypeParam} ‘]’
20732073
* DefTypeParam ::= {Annotation} id [HkTypeParamClause] TypeParamBounds
20742074
*
2075-
* TypTypeParamCaluse::= `[' TypTypeParam {`,' TypTypeParam} `]'
2075+
* TypTypeParamCaluse::= ‘[’ TypTypeParam {‘,’ TypTypeParam} ‘]’
20762076
* TypTypeParam ::= {Annotation} id [HkTypePamClause] TypeBounds
20772077
*
2078-
* HkTypeParamClause ::= `[' HkTypeParam {`,' HkTypeParam} `]'
2079-
* HkTypeParam ::= {Annotation} ['+' | `-'] (id [HkTypePamClause] | _') TypeBounds
2078+
* HkTypeParamClause ::= ‘[’ HkTypeParam {‘,’ HkTypeParam} ‘]’
2079+
* HkTypeParam ::= {Annotation} [‘+’ | ‘-’] (id [HkTypePamClause] | ‘_’) TypeBounds
20802080
*/
20812081
def typeParamClause(ownerKind: ParamOwner.Value): List[TypeDef] = inBrackets {
20822082
def typeParam(): TypeDef = {
@@ -2557,8 +2557,8 @@ object Parsers {
25572557
}
25582558
}
25592559

2560-
/** TmplDef ::= ([`case'] ‘class’ | trait’) ClassDef
2561-
* | [`case'] `object' ObjectDef
2560+
/** TmplDef ::= ([case] ‘class’ | trait’) ClassDef
2561+
* | [case’] ‘object ObjectDef
25622562
* | ‘enum’ EnumDef
25632563
* | ‘instance’ InstanceDef
25642564
*/

0 commit comments

Comments
 (0)