Skip to content

Commit bd19d15

Browse files
committed
[spec] Remove highlighting in the lists of keywords.
The highlighter does not print all keywords with the same color, which makes sense in actual code snippets, but is confusing in the raw lists of all keywords.
1 parent 982c91b commit bd19d15

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/_spec/01-lexical-syntax.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ For this purpose, lower case letters include not only a-z, but also all characte
8383

8484
The following are examples of variable identifiers:
8585

86-
> ```scala
86+
> ```
8787
> x maxIndex p2p empty_?
8888
> `yield` αρετη _y dot_product_*
8989
> __system _MAX_LEN_
@@ -92,7 +92,7 @@ The following are examples of variable identifiers:
9292
9393
Some examples of constant identifiers are
9494
95-
> ```scala
95+
> ```
9696
> + Object $reserved Džul ǂnûm
9797
> ⅰ_ⅲ Ⅰ_Ⅲ ↁelerious ǃqhàà ʹthatsaletter
9898
> ```
@@ -104,7 +104,7 @@ User programs should not define identifiers that contain ‘$’ characters.
104104
105105
The following names are reserved words instead of being members of the syntactic class `id` of lexical identifiers.
106106
107-
```scala
107+
```
108108
abstract case catch class def do else
109109
enum export extends false final finally for
110110
given if implicit import lazy match new
@@ -169,14 +169,14 @@ A newline in a Scala source text is treated as the special token “nl” if the
169169

170170
The tokens that can terminate a statement are: literals, identifiers and the following delimiters and reserved words:
171171

172-
```scala
172+
```
173173
this null true false return type <xml-start>
174174
_ ) ] }
175175
```
176176

177177
The tokens that can begin a statement are all Scala tokens _except_ the following delimiters and reserved words:
178178

179-
```scala
179+
```
180180
catch else extends finally forSome match
181181
with yield , . ; : = => <- <: <%
182182
>: # [ ) ] }
@@ -452,7 +452,7 @@ Characters must not necessarily be printable; newlines or other control characte
452452
>
453453
> This would produce the string:
454454
>
455-
> ```scala
455+
> ```
456456
> the present string
457457
> spans three
458458
> lines.
@@ -469,7 +469,7 @@ Characters must not necessarily be printable; newlines or other control characte
469469
>
470470
> evaluates to
471471
>
472-
> ```scala
472+
> ```
473473
> the present string
474474
> spans three
475475
> lines.

0 commit comments

Comments
 (0)