lua-users home
lua-l archive

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

On 01/29/2017 04:22 AM, Egor Skriptunoff wrote:
> I have a suggestion to allow using of non-escaped newlines
> in literal strings delimited by single or double quotes.
> I think it would be handy all these three definitions to be
> syntactically valid and equivalent:
> local str1 = 'A
> B'
> local str2 = 'A\
> B'
> local str3 = 'A\nB'
> Currently, the definition of str1 gives syntax error.
> I don't see any problems that could appear by enabling syntax
> used for str1.

return 'Whoops! someone ate tail apostrophe...
and horrible 'things'
happened() -- '