moonscript/tests/inputs/string.moon

58 lines
580 B
Plaintext
Raw Normal View History

2011-05-22 07:58:17 +00:00
hi = "hello"
hello = "what the heckyes"
print hi
umm = 'umm'
here, another = "yeah", 'world'
aye = "YU'M"
you '"hmmm" I said'
print aye, you
another = [[ hello world ]]
hi_there = [[
hi there
]]
well = [==[ "helo" ]==]
hola = [===[
eat noots]===]
mm = [[well trhere]]
2011-09-12 06:36:01 +00:00
x = "\\"
x = "a\\b"
x = "\\\n"
x = "\""
--
a = "hello #{hello} hello"
b = "#{hello} hello"
c = "hello #{hello}"
d = ""
y = "hello" .. "world"
y = [[hello world]]
--
a = 'hello #{hello} hello'
b = '#{hello} hello'
c = 'hello #{hello}'
d = ''
y = 'hello' .. 'world'
y = [[hello world]]