adds support for unicode hexcode in string literals.
This commit is contained in:
parent
7f09d6bf1f
commit
8ce9739f11
2 changed files with 26 additions and 3 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue