Skip to content

nelua's preprocessor syntax conflicts with lua's multiline string #151

Answered by edubart
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

Like in Lua you can place any number of = between [ [ to make nested long strings, so you could do:

##[==[

local multilinestring = [=[
my
multi
string

]=]
]==]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ghost
Comment options

Answer selected by edubart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant