lua-users home
lua-l archive

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


>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