lua-users home
lua-l archive

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


2010/5/18 Tony Finch <dot@dotat.at>:
> On Tue, 18 May 2010, Luiz Henrique de Figueiredo wrote:
>> - empty statement
> ... - no restrictions on line breaks in function calls

So, no more ambiguous "ambiguous syntax" error.  Somehow the above two
points seem related.

> - \* 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)
-- careful: can't use "\for"