parser icon indicating copy to clipboard operation
parser copied to clipboard

Fix unicode escape decode bug in `DoubleQuoteString` example.

Open allenap opened this issue 7 years ago • 1 comments

Previously \u Unicode escape codes of between 4 and 6 characters were being rejected, whereas the error message indicates that the inverse should be the behavior.

The example has also been extended to use all recognized escape sequences (\n, \r, \t, \u) and give more information about what's happening.

allenap avatar Nov 03 '18 15:11 allenap

Very useful, thanks!

@evancz please merge, this fixes an example and the output helps better understand what Parser did.

ok300 avatar Dec 01 '22 06:12 ok300