[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.0 (beta-rc5) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 5 Jul 2011 13:41:26 -0300
> > Both '\[' and '\]' were legal in 5.0.
>
> Why? Probably the author meant %[ and %], no?
I can only guess what the author meant, but my guess is that the '%'
would be wrong there. (It would match something balanced
between '%' and '['...)
> > A common case is '\?'. I remember that there were talks about adding
> > this as an official escape sequence (meaning '?'), but I do not remember
> > why.
>
> Do you mean '\?' -> '%?', maybe? (as '\?' -> '?' would make no sense)
> Then you should add '\.' -> '%.', too ...
I mean '\?' -> '?'. As I said, there was some case where it would be
useful to escape the '?' in a string, but I do not remember what it
was. (Trigraphs in Lua??)
-- Roberto