lua-users home
lua-l archive

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


> > 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