lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Roberto Ierusalimschy wrote:
Do you consider ie. the '[[**' approach (by Philippe) [...]

That syntax does not work when the string starts with an asterisk.

Thanks for giving your opinion.

Actually, my proposal isn't really like that, that's Asko that pushes the use of asterisks... :-)

I proposed any string after the square brakets, then an EOL that really starts the string, so you can put asterisks at the start of the string:

a = [[**
** Nice! **
**]]

or:

a = [[#=-
** Nice! **
#=-]]

or even:

a = [[
** Nice! **
]]

or old style:

a = [[** Nice! **]]

All are equivalent to a = "** Nice! **".

Not pushing too hard my proposal, but I don't want it misinterpreted ;-)

--
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--
Philippe Lhoste (Paris -- France)
Professional programmer and amateur artist
http://Phi.Lho.free.fr
--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--=#=--