2010-01-11 23:53:50 -05:00
|
|
|
a: """
|
|
|
|
basic heredoc
|
|
|
|
on two lines
|
|
|
|
"""
|
|
|
|
|
2010-02-16 19:45:25 -05:00
|
|
|
ok a is "basic heredoc\non two lines"
|
2010-01-11 23:53:50 -05:00
|
|
|
|
|
|
|
|
|
|
|
a: '''
|
|
|
|
a
|
2010-01-12 00:00:38 -05:00
|
|
|
"b
|
2010-01-11 23:53:50 -05:00
|
|
|
c
|
|
|
|
'''
|
|
|
|
|
2010-02-16 19:45:25 -05:00
|
|
|
ok a is "a\n \"b\nc"
|
2010-01-11 23:53:50 -05:00
|
|
|
|
|
|
|
|
|
|
|
a: '''one-liner'''
|
|
|
|
|
2010-02-16 19:45:25 -05:00
|
|
|
ok a is 'one-liner'
|
2010-01-11 23:53:50 -05:00
|
|
|
|
|
|
|
|
|
|
|
a: """
|
|
|
|
out
|
|
|
|
here
|
|
|
|
"""
|
|
|
|
|
2010-02-16 19:45:25 -05:00
|
|
|
ok a is "out\nhere"
|
2010-01-12 23:06:12 -05:00
|
|
|
|
|
|
|
|
|
|
|
a: '''
|
|
|
|
a
|
|
|
|
b
|
|
|
|
c
|
|
|
|
'''
|
|
|
|
|
2010-02-16 19:45:25 -05:00
|
|
|
ok a is " a\n b\nc"
|
2010-01-19 09:49:23 -05:00
|
|
|
|
2010-02-28 10:29:30 -05:00
|
|
|
|
2010-01-19 09:49:23 -05:00
|
|
|
a: '''
|
|
|
|
a
|
|
|
|
|
|
|
|
|
|
|
|
b c
|
|
|
|
'''
|
|
|
|
|
2010-02-16 19:45:25 -05:00
|
|
|
ok a is "a\n\n\nb c"
|
2010-02-28 10:29:30 -05:00
|
|
|
|
|
|
|
|
|
|
|
a: '''more"than"one"quote'''
|
|
|
|
|
2010-03-17 20:47:27 -04:00
|
|
|
ok a is 'more"than"one"quote'
|
|
|
|
|
|
|
|
|
|
|
|
val: 10
|
|
|
|
|
|
|
|
a: """
|
|
|
|
basic heredoc $val
|
|
|
|
on two lines
|
|
|
|
"""
|
|
|
|
|
|
|
|
b: '''
|
|
|
|
basic heredoc $val
|
|
|
|
on two lines
|
|
|
|
'''
|
|
|
|
|
|
|
|
ok a is "basic heredoc 10\non two lines"
|
|
|
|
ok b is "basic heredoc \$val\non two lines"
|
2010-06-02 19:53:03 -04:00
|
|
|
|
|
|
|
|
|
|
|
a: '''here's an apostrophe'''
|
|
|
|
ok a is "here's an apostrophe"
|