-
Notifications
You must be signed in to change notification settings - Fork 499
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Hi, I'm trying to run a string interpolation in a multiline string as follows see demo:
local my_table = {
name = "Juan"
}
print(`Hello: {my_table.name}`)
print("----------------------")
local multi_line = [[
Multiline hello: {my_table.name}
Another line...
]]
print(multi_line)However, Luau does not recognize the {} inside of the multiline as an argument for the interpolation.
Current result:
Hello: Juan
----------------------
Multiline hello: {my_table.name}
Another line...
Expected result:
Hello: Juan
----------------------
Multiline hello: Juan
Another line...
Is there syntax for multi-line string interpolation? I tried:
[[`
multiline
`]]
but it includes the ` inside the string.
`[[
]]`
but throws an error: Error:8: Malformed string; did you forget to finish it?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working