From 71c1716ae4f16a05825695a33d480ac194c5ae09 Mon Sep 17 00:00:00 2001 From: Adriaan Moors Date: Wed, 26 Mar 2014 21:40:02 -0700 Subject: Add language to code blocks. Shorter Example title. --- 15-syntax-summary.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '15-syntax-summary.md') 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 -- cgit v1.2.3