Skip to content

Commit

Permalink
[spec] Remove highlighting in the lists of keywords.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sjrd committed Sep 28, 2023
1 parent 982c91b commit bd19d15
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/_spec/01-lexical-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ For this purpose, lower case letters include not only a-z, but also all characte

The following are examples of variable identifiers:

> ```scala
> ```
> x maxIndex p2p empty_?
> `yield` αρετη _y dot_product_*
> __system _MAX_LEN_
Expand All @@ -92,7 +92,7 @@ The following are examples of variable identifiers:
Some examples of constant identifiers are

> ```scala
> ```
> + Object $reserved Džul ǂnûm
> ⅰ_ⅲ Ⅰ_Ⅲ ↁelerious ǃqhàà ʹthatsaletter
> ```
Expand All @@ -104,7 +104,7 @@ User programs should not define identifiers that contain ‘$’ characters.

The following names are reserved words instead of being members of the syntactic class `id` of lexical identifiers.

```scala
```
abstract case catch class def do else
enum export extends false final finally for
given if implicit import lazy match new
Expand Down Expand Up @@ -169,14 +169,14 @@ A newline in a Scala source text is treated as the special token “nl” if the

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

```scala
```
this null true false return type <xml-start>
_ ) ] }
```

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

```scala
```
catch else extends finally forSome match
with yield , . ; : = => <- <: <%
>: # [ ) ] }
Expand Down Expand Up @@ -452,7 +452,7 @@ Characters must not necessarily be printable; newlines or other control characte
>
> This would produce the string:
>
> ```scala
> ```
> the present string
> spans three
> lines.
Expand All @@ -469,7 +469,7 @@ Characters must not necessarily be printable; newlines or other control characte
>
> evaluates to
>
> ```scala
> ```
> the present string
> spans three
> lines.
Expand Down

0 comments on commit bd19d15

Please sign in to comment.