mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 22:10:33 +00:00
Merge pull request #4258 from Parashurama/add_unicode_escape
adds support for unicode hexcode in string literals.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user