[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Why non-escaped newlines are prohibited in single-quoted string literals?
- From: Martin <eden_martin_fuhrspam@...>
- Date: Sun, 29 Jan 2017 20:46:00 -0800
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() -- '