Skip to content

Commit 38e79aa

Browse files
committed
Replace … by ...
1 parent d557687 commit 38e79aa

File tree

6 files changed

+46
-46
lines changed

6 files changed

+46
-46
lines changed

docs/_spec/01-lexical-syntax.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ classes (Unicode general category given in parentheses):
1919
1. Letters, which include lower case letters (`Ll`), upper case letters (`Lu`),
2020
title case letters (`Lt`), other letters (`Lo`), modifier letters (`Lm`),
2121
letter numerals (`Nl`) and the two characters `\u0024 ‘$’` and `\u005F ‘_’`.
22-
1. Digits `‘0’ | | ‘9’`.
22+
1. Digits `‘0’ | ... | ‘9’`.
2323
1. Parentheses `‘(’ | ‘)’ | ‘[’ | ‘]’ | ‘{’ | ‘}’ `.
2424
1. Delimiter characters ``‘`’ | ‘'’ | ‘"’ | ‘.’ | ‘;’ | ‘,’ ``.
2525
1. Operator characters. These consist of all printable ASCII characters
@@ -41,7 +41,7 @@ id ::= plainid
4141
idrest ::= {letter | digit} [‘_’ op]
4242
escapeSeq ::= UnicodeEscape | charEscapeSeq
4343
UnicodeEscape ::= ‘\’ ‘u’ {‘u’} hexDigit hexDigit hexDigit hexDigit
44-
hexDigit ::= ‘0’ | | ‘9’ | ‘A’ | | ‘F’ | ‘a’ | | ‘f’
44+
hexDigit ::= ‘0’ | ... | ‘9’ | ‘A’ | ... | ‘F’ | ‘a’ | ... | ‘f’
4545
```
4646

4747
There are three ways to form an identifier. First, an identifier can

docs/_spec/03-types.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -207,13 +207,13 @@ substitution ´[ a_1 := T_1 , \ldots , a_n := T_n ]´.
207207
Given the partial type definitions:
208208

209209
```scala
210-
class TreeMap[A <: Comparable[A], B] { }
211-
class List[A] { }
212-
class I extends Comparable[I] { }
210+
class TreeMap[A <: Comparable[A], B] { ... }
211+
class List[A] { ... }
212+
class I extends Comparable[I] { ... }
213213

214-
class F[M[_], X] { }
215-
class S[K <: String] { }
216-
class G[M[ Z <: I ], I] { }
214+
class F[M[_], X] { ... }
215+
class S[K <: String] { ... }
216+
class G[M[ Z <: I ], I] { ... }
217217
```
218218

219219
the following parameterized types are well-formed:
@@ -255,20 +255,20 @@ A _tuple type_ ´(T_1 , \ldots , T_n)´ is an alias for the
255255
class `scala.Tuple´n´[´T_1´, … , ´T_n´]`, where ´n \geq 2´.
256256

257257
Tuple classes are case classes whose fields can be accessed using
258-
selectors `_1` , … , `_n`. Their functionality is
258+
selectors `_1`, ..., `_n`. Their functionality is
259259
abstracted in a corresponding `Product` trait. The _n_-ary tuple
260260
class and product trait are defined at least as follows in the
261261
standard Scala library (they might also add other methods and
262262
implement other traits).
263263

264264
```scala
265-
case class Tuple´_n´[+´T_1´, , +´T_n´](_1: ´T_1´, , _n: ´T_n´)
266-
extends Product´_n´[´T_1´, , ´T_n´]
265+
case class Tuple´_n´[+´T_1´, ..., +´T_n´](_1: ´T_1´, ..., _n: ´T_n´)
266+
extends Product´_n´[´T_1´, ..., ´T_n´]
267267

268-
trait Product´_n´[+´T_1´, , +´T_n´] {
268+
trait Product´_n´[+´T_1´, ..., +´T_n´] {
269269
override def productArity = ´n´
270270
def _1: ´T_1´
271-
271+
...
272272
def _n: ´T_n´
273273
}
274274
```
@@ -302,7 +302,7 @@ RefineStat ::= Dcl
302302
|
303303
```
304304

305-
A _compound type_ ´T_1´ `with` `with` ´T_n \\{ R \\
305+
A _compound type_ ´T_1´ `with` ... `with` ´T_n \\{ R \\
306306
represents objects with members as given in the component types
307307
´T_1 , \ldots , T_n´ and the refinement ´\\{ R \\}´. A refinement
308308
´\\{ R \\}´ contains declarations and type definitions.
@@ -323,7 +323,7 @@ definition within the refinement. This restriction does not apply to
323323
the method's result type.
324324

325325
If no refinement is given, the empty refinement is implicitly added,
326-
i.e. ´T_1´ `with` `with` ´T_n´ is a shorthand for ´T_1´ `with` `with` ´T_n \\{\\}´.
326+
i.e. ´T_1´ `with` ... `with` ´T_n´ is a shorthand for ´T_1´ `with` ... `with` ´T_n \\{\\}´.
327327

328328
A compound type may also consist of just a refinement
329329
´\\{ R \\}´ with no preceding component types. Such a type is
@@ -336,12 +336,12 @@ a parameter type that contains a refinement with structural declarations.
336336

337337
```scala
338338
case class Bird (val name: String) extends Object {
339-
def fly(height: Int) =
340-
339+
def fly(height: Int) = ...
340+
...
341341
}
342342
case class Plane (val callsign: String) extends Object {
343-
def fly(height: Int) =
344-
343+
def fly(height: Int) = ...
344+
...
345345
}
346346
def takeoff(
347347
runway: Int,
@@ -415,8 +415,8 @@ types are defined in the Scala library for ´n´ between 0 and 22 as follows.
415415

416416
```scala
417417
package scala
418-
trait Function´_n´[-´T_1´ , … , -´T_n´, +´U´] {
419-
def apply(´x_1´: ´T_1´ , … , ´x_n´: ´T_n´): ´U´
418+
trait Function´_n´[-´T_1´, ..., -´T_n´, +´U´] {
419+
def apply(´x_1´: ´T_1´, ..., ´x_n´: ´T_n´): ´U´
420420
override def toString = "<function>"
421421
}
422422
```
@@ -724,7 +724,7 @@ These notions are defined mutually recursively as follows.
724724
given as follows.
725725
- The base types of a class type ´C´ with parents ´T_1 , \ldots , T_n´ are
726726
´C´ itself, as well as the base types of the compound type
727-
`´T_1´ with with ´T_n´ { ´R´ }`.
727+
`´T_1´ with ... with ´T_n´ { ´R´ }`.
728728
- The base types of an aliased type are the base types of its alias.
729729
- The base types of an abstract type are the base types of its upper bound.
730730
- The base types of a parameterized type
@@ -861,8 +861,8 @@ The conformance relation ´(<:)´ is the smallest transitive relation that satis
861861
- A singleton type `´p´.type` conforms to the type of the path ´p´.
862862
- A singleton type `´p´.type` conforms to the type `scala.Singleton`.
863863
- A type projection `´T´#´t´` conforms to `´U´#´t´` if ´T´ conforms to ´U´.
864-
- A parameterized type `´T´[´T_1´ , … , ´T_n´]` conforms to
865-
`´T´[´U_1´ , … , ´U_n´]` if
864+
- A parameterized type `´T´[´T_1´, ..., ´T_n´]` conforms to
865+
`´T´[´U_1´, ..., ´U_n´]` if
866866
the following three conditions hold for ´i \in \{ 1 , \ldots , n \}´:
867867
1. If the ´i´'th type parameter of ´T´ is declared covariant, then
868868
´T_i <: U_i´.
@@ -922,13 +922,13 @@ type ´C'´, if one of the following holds.
922922
subsumes a method declaration that defines ´x´ with type ´T'´, provided
923923
´T <: T'´.
924924
- A type alias
925-
`type ´t´[´T_1´ , … , ´T_n´] = ´T´` subsumes a type alias
926-
`type ´t´[´T_1´ , … , ´T_n´] = ´T'´` if ´T \equiv T'´.
927-
- A type declaration `type ´t´[´T_1´ , … , ´T_n´] >: ´L´ <: ´U´` subsumes
928-
a type declaration `type ´t´[´T_1´ , … , ´T_n´] >: ´L'´ <: ´U'´` if
925+
`type ´t´[´T_1´, ..., ´T_n´] = ´T´` subsumes a type alias
926+
`type ´t´[´T_1´, ..., ´T_n´] = ´T'´` if ´T \equiv T'´.
927+
- A type declaration `type ´t´[´T_1´, ..., ´T_n´] >: ´L´ <: ´U´` subsumes
928+
a type declaration `type ´t´[´T_1´, ..., ´T_n´] >: ´L'´ <: ´U'´` if
929929
´L' <: L´ and ´U <: U'´.
930930
- A type or class definition that binds a type name ´t´ subsumes an abstract
931-
type declaration `type t[´T_1´ , … , ´T_n´] >: L <: U` if
931+
type declaration `type t[´T_1´, ..., ´T_n´] >: L <: U` if
932932
´L <: t <: U´.
933933

934934

@@ -1024,7 +1024,7 @@ A value member of a volatile type cannot appear in a [path](#paths).
10241024

10251025
A type is _volatile_ if it falls into one of four categories:
10261026

1027-
A compound type `´T_1´ with with ´T_n´ {´R\,´}`
1027+
A compound type `´T_1´ with ... with ´T_n´ {´R\,´}`
10281028
is volatile if one of the following three conditions hold.
10291029

10301030
1. One of ´T_2 , \ldots , T_n´ is a type parameter or abstract type, or

docs/_spec/08-pattern-matching.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ The expansion of interpolated string literals in patterns is the same as
114114
in expressions. If it occurs in a pattern, a interpolated string literal
115115
of either of the forms
116116
```
117-
id"text0{ pat1 }text1 { patn }textn"
118-
id"""text0{ pat1 }text1 { patn }textn"""
117+
id"text0{ pat1 }text1 ... { patn }textn"
118+
id"""text0{ pat1 }text1 ... { patn }textn"""
119119
```
120120
is equivalent to:
121121
```
122-
StringContext("""text0""", , """textn""").id(pat1, , patn)
122+
StringContext("""text0""", ..., """textn""").id(pat1, ..., patn)
123123
```
124124
You could define your own `StringContext` to shadow the default one that's
125125
in the `scala` package.

docs/_spec/13-syntax-summary.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ The lexical syntax of Scala is given by the following grammar in EBNF form:
1414

1515
```ebnf
1616
whiteSpace ::= ‘\u0020’ | ‘\u0009’ | ‘\u000D’ | ‘\u000A’
17-
upper ::= ‘A’ | | ‘Z’ | ‘$’ and any character in Unicode categories Lu, Lt or Nl,
17+
upper ::= ‘A’ | ... | ‘Z’ | ‘$’ and any character in Unicode categories Lu, Lt or Nl,
1818
and any character in Unicode categories Lo and Lm that doesn't have
1919
contributory property Other_Lowercase
20-
lower ::= ‘a’ | | ‘z’ | ‘_’ and any character in Unicode category Ll,
20+
lower ::= ‘a’ | ... | ‘z’ | ‘_’ and any character in Unicode category Ll,
2121
and any character in Unicode categories Lo or Lm that has contributory
2222
property Other_Lowercase
2323
letter ::= upper | lower
24-
digit ::= ‘0’ | | ‘9’
24+
digit ::= ‘0’ | ... | ‘9’
2525
paren ::= ‘(’ | ‘)’ | ‘[’ | ‘]’ | ‘{’ | ‘}’
2626
delim ::= ‘`’ | ‘'’ | ‘"’ | ‘.’ | ‘;’ | ‘,’
2727
opchar ::= ‘!’ | ‘#’ | ‘%’ | ‘&’ | ‘*’ | ‘+’ | ‘-’ | ‘/’ | ‘:’ |
2828
‘<’ | ‘=’ | ‘>’ | ‘?’ | ‘@’ | ‘\’ | ‘^’ | ‘|’ | ‘~’
2929
and any character in Unicode categories Sm or So
3030
printableChar ::= all characters in [\u0020, \u007E] inclusive
3131
UnicodeEscape ::= ‘\’ ‘u’ {‘u’} hexDigit hexDigit hexDigit hexDigit
32-
hexDigit ::= ‘0’ | | ‘9’ | ‘A’ | | ‘F’ | ‘a’ | | ‘f’
32+
hexDigit ::= ‘0’ | ... | ‘9’ | ‘A’ | ... | ‘F’ | ‘a’ | ... | ‘f’
3333
charEscapeSeq ::= ‘\’ (‘b’ | ‘t’ | ‘n’ | ‘f’ | ‘r’ | ‘"’ | ‘'’ | ‘\’)
3434
escapeSeq ::= UnicodeEscape | charEscapeSeq
3535
op ::= opchar {opchar}

docs/_spec/TODOreference/changed-features/overload-resolution.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ as follows:
6666

6767
Replace the sentence
6868

69-
> Otherwise, let `S1,,Sm` be the vector of types obtained by typing each argument with an undefined expected type.
69+
> Otherwise, let `S1,...,Sm` be the vector of types obtained by typing each argument with an undefined expected type.
7070
7171
with the following paragraph:
7272

73-
> Otherwise, let `S1,,Sm` be the vector of known types of all argument types, where the _known type_ of an argument `E`
73+
> Otherwise, let `S1,...,Sm` be the vector of known types of all argument types, where the _known type_ of an argument `E`
7474
is determined as followed:
7575

7676
- If `E` is a function value `(p_1, ..., p_n) => B` that misses some parameter types, the known type

docs/_spec/TODOreference/syntax.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ hexadecimal code:
2626

2727
```
2828
UnicodeEscape ::= ‘\’ ‘u’ {‘u’} hexDigit hexDigit hexDigit hexDigit
29-
hexDigit ::= ‘0’ | | ‘9’ | ‘A’ | | ‘F’ | ‘a’ | | ‘f’
29+
hexDigit ::= ‘0’ | ... | ‘9’ | ‘A’ | ... | ‘F’ | ‘a’ | ... | ‘f’
3030
```
3131

3232
Informal descriptions are typeset as `“some comment”`.
@@ -38,15 +38,15 @@ form.
3838

3939
```
4040
whiteSpace ::= ‘\u0020’ | ‘\u0009’ | ‘\u000D’ | ‘\u000A’
41-
upper ::= ‘A’ | | ‘Z’ | ‘\$’ | ‘_’ “ and Unicode category Lu”
42-
lower ::= ‘a’ | | ‘z’ “ and Unicode category Ll”
43-
letter ::= upper | lower “ and Unicode categories Lo, Lt, Nl”
44-
digit ::= ‘0’ | | ‘9’
41+
upper ::= ‘A’ | ... | ‘Z’ | ‘\$’ | ‘_’ “... and Unicode category Lu”
42+
lower ::= ‘a’ | ... | ‘z’ “... and Unicode category Ll”
43+
letter ::= upper | lower “... and Unicode categories Lo, Lt, Nl”
44+
digit ::= ‘0’ | ... | ‘9’
4545
paren ::= ‘(’ | ‘)’ | ‘[’ | ‘]’ | ‘{’ | ‘}’
4646
delim ::= ‘`’ | ‘'’ | ‘"’ | ‘.’ | ‘;’ | ‘,’
4747
opchar ::= ‘!’ | ‘#’ | ‘%’ | ‘&’ | ‘*’ | ‘+’ | ‘-’ | ‘/’ | ‘:’ |
4848
‘<’ | ‘=’ | ‘>’ | ‘?’ | ‘@’ | ‘\’ | ‘^’ | ‘|’ | ‘~’
49-
and Unicode categories Sm, So”
49+
... and Unicode categories Sm, So”
5050
printableChar ::= “all characters in [\u0020, \u007E] inclusive”
5151
charEscapeSeq ::= ‘\’ (‘b’ | ‘t’ | ‘n’ | ‘f’ | ‘r’ | ‘"’ | ‘'’ | ‘\’)
5252
@@ -65,7 +65,7 @@ spliceId ::= ‘$’ alphaid ;
6565
integerLiteral ::= (decimalNumeral | hexNumeral) [‘L’ | ‘l’]
6666
decimalNumeral ::= ‘0’ | nonZeroDigit [{digit | ‘_’} digit]
6767
hexNumeral ::= ‘0’ (‘x’ | ‘X’) hexDigit [{hexDigit | ‘_’} hexDigit]
68-
nonZeroDigit ::= ‘1’ | | ‘9’
68+
nonZeroDigit ::= ‘1’ | ... | ‘9’
6969
7070
floatingPointLiteral
7171
::= [decimalNumeral] ‘.’ digit [{digit | ‘_’} digit] [exponentPart] [floatType]

0 commit comments

Comments
 (0)