lua-users home
lua-l archive

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


Roberto Ierusalimschy wrote:
> > On Tuesday, July 5, 2011, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
> > > How many scripts do you think will fail with this addition of '\x'?
> > 
> > Related: Approx 1% of scripts use undefined escape sequences:
> > http://lua-users.org/lists/lua-l/2010-10/msg00449.html
> 
> None of them use '\x' or '\u'.

But \o and \l ...

> Both '\[' and '\]' were legal in 5.0.

Why?  Probably the author meant %[ and %], no?

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

ET