[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How does Lua parse newlines?
- From: Francisco Olarte <folarte@...>
- Date: Sat, 14 Oct 2017 19:00:41 +0200
On Sat, Oct 14, 2017 at 5:43 PM, Soni L. <fakedme@gmail.com> wrote:
...
>> print(load('return "\\z \n\r \n\r \r\n \n \n\\x"', "@test"))
> nil test:6: hexadecimal digit expected near '"\x"
>
> WHY LINE 6. I NEED TO KNOW.
Because you forgot to escape the newlines and it is in the sixth line?
i.e., preceeding your line with:
> function load(...) return ... end
gives me: (start of line dots added for easier counting )
.> print(load('return "\\z \n\r \n\r \r\n \n \n\\x"', "@test"))
.return "\z
.
.
.
.
.\x" @test
.>
Francisco Olarte.