[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Literal string strangeness
- From: Dirk Feytons <dirk.feytons@...>
- Date: Fri, 23 Oct 2009 13:15:04 +0200
On Fri, Oct 23, 2009 at 12:51 PM, Mauro Iazzi <mauro.iazzi@gmail.com> wrote:
>> I would have expected a 13 in place of the second 10. Any ideas?
>> I am using Lua 5.1.4 on linux. Thanx!
>
> It is deliberate, see llex.c lines 257-263. I cannot find any mention
> in the manual ( assuming it would be in
> http://www.lua.org/manual/5.1/manual.html#2.1)
It is mentioned there: "For convenience, when the opening long bracket
is immediately followed by a newline, the newline is not included in
the string."
--
Dirk