[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Writing "raw" strings in Lua
- From: lhf (Luiz Henrique de Figueiredo)
- Date: Fri, 2 Jan 1998 09:15:09 -0200
>From miller@mail.netrio.com.br Fri Jan 2 06:11:04 1998
>
>> What is this [[]] stuff?
>> I don't remember reading about it in the manual.
>
>If Lua encounters a [[ while parsing through commands, it enters
>"string mode" and reads anything it finds as string characters until
>it reaches a ]].
The important thing here is that [[ ... ]] match, so you can nest them.
So, your string can contain quotes, newlines, etc, even [[ ... ]], provided
they match.
--lhf