mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-20 14:25:23 +00:00
Unicode escape in string literals (#9390)
This commit is contained in:
committed by
Andreas Rumpf
parent
0d48bafcf0
commit
163e9de3c2
@@ -285,6 +285,11 @@ contain the following `escape sequences`:idx:\ :
|
||||
``\e`` `escape`:idx: `[ESC]`:idx:
|
||||
``\x`` HH `character with hex value HH`:idx:;
|
||||
exactly two hex digits are allowed
|
||||
``\u`` HHHH `unicode codepoint with hex value HHHH`:idx:;
|
||||
exactly four hex digits are allowed
|
||||
``\u`` {H+} `unicode codepoint`:idx:;
|
||||
all hex digits enclosed in ``{}`` are used for
|
||||
the codepoint
|
||||
================== ===================================================
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user