summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorOscar NihlgÄrd <oscarnihlgard@gmail.com>2018-10-17 00:14:22 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-10-17 00:14:22 +0200
commit163e9de3c2c59698d4e4fc474e1580570a67b645 (patch)
treedd2a323bdded84d99d3efe6a2d8d92f248de818e /doc
parent0d48bafcf08bb2be72029ccebc745b5594d49731 (diff)
downloadNim-163e9de3c2c59698d4e4fc474e1580570a67b645.tar.gz
Unicode escape in string literals (#9390)
Diffstat (limited to 'doc')
-rw-r--r--doc/manual.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/manual.rst b/doc/manual.rst
index 8f6aae29e..98943619d 100644
--- a/doc/manual.rst
+++ b/doc/manual.rst
@@ -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
 ==================         ===================================================