[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5 Grammar update
- From: Maxime Petazzoni <maxime.petazzoni@...>
- Date: Wed, 27 Jul 2005 13:13:19 +0200
> Mmm, did my job and searched the archive...
> Gavin Wraith expressed the same concern in a 2005/05/19 message...
> OK, if I understand correctly Roberto's answer, you cannot nest comments
> of same level (same number of = signs) but you can nest comments of
> different levels, ie. it is legal to write:
>
> --[==[ Comment out large section of code
> Foo()
> print [[C:\Program Files\42.txt]]
> Bar()
> ]==]
>
> while you cannot write: a = [=[ Groo [=[ Stupid ]=] Wanderer ]=]
>
> Am I right? This make sense!
>
> Is [=[ Blah [==[ Hoops ]==] Goo ]=] legal? I suppose so, I guess levels
> are just for differentiation, not for deepness.
You're right. You can write [==[ Blah [=[ Hoops ]=] Gpp ]==] as well.
- Sam
--
Maxime Petazzoni (http://www.bulix.org)
-- gone crazy, back soon. leave message.
Attachment:
signature.asc
Description: Digital signature