implemented extended quoting rules
This commit is contained in:
parent
0bcdab8395
commit
6c5693e633
11 changed files with 317 additions and 415 deletions
14
tests/tstrlits.nim
Executable file
14
tests/tstrlits.nim
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
# Test the new different string literals
|
||||
|
||||
const
|
||||
tripleEmpty = """"long string"""""""" # "long string """""
|
||||
|
||||
rawQuote = r"a"""
|
||||
|
||||
raw = r"abc""def"
|
||||
|
||||
stdout.write(rawQuote)
|
||||
stdout.write(tripleEmpty)
|
||||
stdout.write(raw)
|
||||
#OUT a""long string"""""abc"def
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue