diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-03-26 21:40:02 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-03-26 21:40:48 -0700 |
commit | 71c1716ae4f16a05825695a33d480ac194c5ae09 (patch) | |
tree | 9f6002559be84e32fa3a983f3bbf5dbab199aae5 /15-syntax-summary.md | |
parent | abd0895322985dd4a590f3dd96a488f4e4ff87bf (diff) | |
download | scala-71c1716ae4f16a05825695a33d480ac194c5ae09.tar.gz scala-71c1716ae4f16a05825695a33d480ac194c5ae09.tar.bz2 scala-71c1716ae4f16a05825695a33d480ac194c5ae09.zip |
Add language to code blocks. Shorter Example title.
Diffstat (limited to '15-syntax-summary.md')
-rw-r--r-- | 15-syntax-summary.md | 6 |
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 |