diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-06-02 09:55:27 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-06-02 09:55:27 +0200 |
commit | ca6986b89c6d5a6cb3f33dda1237147596928cfe (patch) | |
tree | 2ea8211716c4987c0045dd30d23f222da34f9a22 /tests | |
parent | c11de219e5d4384a4449d226239daa4ed79cb5a6 (diff) | |
parent | 8ce9739f117c7807076bfffd20662ac11ded57a9 (diff) | |
download | Nim-ca6986b89c6d5a6cb3f33dda1237147596928cfe.tar.gz |
Merge pull request #4258 from Parashurama/add_unicode_escape
adds support for unicode hexcode in string literals.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lexer/tstrlits.nim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/lexer/tstrlits.nim b/tests/lexer/tstrlits.nim index f5b7ce937..cc8872f60 100644 --- a/tests/lexer/tstrlits.nim +++ b/tests/lexer/tstrlits.nim @@ -1,6 +1,6 @@ discard """ file: "tstrlits.nim" - output: "a\"\"long string\"\"\"\"\"abc\"def" + output: "a\"\"long string\"\"\"\"\"abc\"def_'2'●" """ # Test the new different string literals @@ -11,9 +11,13 @@ const raw = r"abc""def" + escaped = "\x5f'\50'\u25cf" + + stdout.write(rawQuote) stdout.write(tripleEmpty) stdout.write(raw) +stdout.write(escaped) #OUT a""long string"""""abc"def |