Merge pull request #4258 from Parashurama/add_unicode_escape

adds support for unicode hexcode in string literals.
This commit is contained in:
Andreas Rumpf
2016-06-02 09:55:27 +02:00
2 changed files with 26 additions and 3 deletions

View File

@@ -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