From 19ab789a37ce429550ee8ca6e20f00111ff76b54 Mon Sep 17 00:00:00 2001 From: Adriaan Moors Date: Tue, 11 Mar 2014 16:44:50 -0700 Subject: SI-4583 UnicodeEscape does not allow multiple backslashes --- 03-lexical-syntax.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/03-lexical-syntax.md b/03-lexical-syntax.md index 28919f8b14..30b4ffdade 100644 --- a/03-lexical-syntax.md +++ b/03-lexical-syntax.md @@ -11,11 +11,18 @@ to Scala mode, and literal characters ‘c’ refer to the ASCII fragment In Scala mode, _Unicode escapes_ are replaced by the corresponding Unicode character with the given hexadecimal code. -``` -UnicodeEscape ::= \{\\}u{u} hexDigit hexDigit hexDigit hexDigit +``` +UnicodeEscape ::= ‘\‘‘u‘{‘u‘} hexDigit hexDigit hexDigit hexDigit hexDigit ::= ‘0’ | … | ‘9’ | ‘A’ | … | ‘F’ | ‘a’ | … | ‘f’ ``` + + To construct tokens, characters are distinguished according to the following classes (Unicode general category given in parentheses): -- cgit v1.2.3