diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-03-11 16:44:50 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-03-11 16:44:50 -0700 |
commit | 19ab789a37ce429550ee8ca6e20f00111ff76b54 (patch) | |
tree | 0a38c73ad96694bccc5ed1e9b4f6c8b98ee59596 /03-lexical-syntax.md | |
parent | 1ca209508a77e833408987c5d95d5c490edf59a3 (diff) | |
download | scala-19ab789a37ce429550ee8ca6e20f00111ff76b54.tar.gz scala-19ab789a37ce429550ee8ca6e20f00111ff76b54.tar.bz2 scala-19ab789a37ce429550ee8ca6e20f00111ff76b54.zip |
SI-4583 UnicodeEscape does not allow multiple backslashes
Diffstat (limited to '03-lexical-syntax.md')
-rw-r--r-- | 03-lexical-syntax.md | 11 |
1 files 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’ ``` +<!-- +TODO SI-4583: UnicodeEscape used to allow additional backslashes, +and there is something in the code `evenSlashPrefix` that alludes to it, +but I can't make it work nor can I imagine how this would make sense, +so I removed it for now. +--> + To construct tokens, characters are distinguished according to the following classes (Unicode general category given in parentheses): |