Commit Graph
2 Commits
Author SHA1 Message Date
Will Speak 55c21c397d docs: add Will Speak to AUTHORS file with email contact
Append a new contributor entry for Will Speak with their email address
to the project's AUTHORS file, following the existing formatting
convention used for other contributors.
2015-10-18 09:55:34 +00:00
Will Speak 645296cbd8 feat: add \U style 8-hex-digit unicode escape support in string literals
Extend the compiler's string parser to handle `\U` escapes with 8 hex digits
for codepoints above U+FFFF, replacing the previous TODO comment. The
`readUnicodeEscape` helper now accepts a variable digit count (4 or 8) and
the `readString` function dispatches `\u` with length 4 and `\U` with length 8.
New test cases verify correct encoding of emoji and ancient scripts, plus
error handling for incomplete long escapes and values that fit in 4 digits.
2015-10-03 16:28:25 +00:00