lua-users home
lua-l archive

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


Hi!

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.

I think Lua would be a bit more comfortable to use
with unnecessary prohibition removed.

-- Egor