Permalink
Browse files

SI-4583 UnicodeEscape does not allow multiple backslashes

  • Loading branch information...
1 parent 1ca2095 commit 19ab789a37ce429550ee8ca6e20f00111ff76b54 @adriaanm adriaanm committed Mar 11, 2014
Showing with 9 additions and 2 deletions.
  1. +9 −2 03-lexical-syntax.md
View
@@ -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):

0 comments on commit 19ab789

Please sign in to comment.