lua-users home
lua-l archive

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


On 19/05/2010 05:48, David Manura wrote:
- \* string continuations

Maybe not the prettiest when some indenting should be preserved:

x = "for i=1,3 do\n\*
     \  print 'one'\n\*
      end\n\*
      for i=1,3 do\n\*
     \  print 'two'\n\*
      end"
print(x)

Well, if I understood correctly, this syntax is to have long strings without line breaks.
For what you show, long string syntax might be better adapted...

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --