summaryrefslogtreecommitdiff
path: root/15-syntax-summary.md
diff options
context:
space:
mode:
Diffstat (limited to '15-syntax-summary.md')
-rw-r--r--15-syntax-summary.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/15-syntax-summary.md b/15-syntax-summary.md
index ac24e1e14a..3eecc26eb4 100644
--- a/15-syntax-summary.md
+++ b/15-syntax-summary.md
@@ -10,14 +10,14 @@ The following descriptions of Scala tokens uses literal characters `‘c’` whe
_Unicode escapes_ are used to represent the Unicode character with the given hexadecimal code:
-```
+```ebnf
UnicodeEscape ::= ‘\‘ ‘u‘ {‘u‘} hexDigit hexDigit hexDigit hexDigit
hexDigit ::= ‘0’ | … | ‘9’ | ‘A’ | … | ‘F’ | ‘a’ | … | ‘f’
```
The lexical syntax of Scala is given by the following grammar in EBNF form:
-```
+```ebnf
whiteSpace ::= ‘\u0020’ | ‘\u0009’ | ‘\u000D’ | ‘\u000A’
upper ::= ‘A’ | … | ‘Z’ | ‘\$’ | ‘_’ // and Unicode category Lu
lower ::= ‘a’ | … | ‘z’ // and Unicode category Ll
@@ -75,7 +75,7 @@ semi ::= ‘;’ | nl {nl}
The context-free syntax of Scala is given by the following EBNF
grammar.
-```
+```ebnf
Literal ::= [‘-’] integerLiteral
| [‘-’] floatingPointLiteral
| booleanLiteral