Raw string literals and Unicode escapes
John Rose
john.r.rose at oracle.com
Tue Feb 13 22:27:30 UTC 2018
On Feb 13, 2018, at 2:19 PM, Jim Laskey <james.laskey at oracle.com> wrote:
>
> So, change the scanner to
>
> A) Peek back to make sure the first open backtick was exactly a backtick.
> B) Turn off Unicode escapes immediately so that only backtick characters can be part of the delimiter.
> C) Turn on Unicode escapes only after a valid closing delimiter is encountered.
>
> Based on this all your examples are illegal.
+1
I think this is also the simplest behavior to explain to users.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/amber-spec-experts/attachments/20180213/76015f94/attachment.html>
More information about the amber-spec-experts
mailing list