lua-users home
lua-l archive

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


thanks, i just posted a issue referencing this discussion https://github.com/zedshaw/Tir/issues/5

On 10 September 2011 13:01, David Manura <dm.lua@math2.org> wrote:
On Fri, Sep 9, 2011 at 3:17 PM, Patrick Donnelly <batrick@batbytes.com> wrote:
> On Fri, Sep 9, 2011 at 3:10 PM, Francisco <xxleite@gmail.com> wrote:
>> in luajit (GIT HEAD),[...]
>> tir:23 invalid escape sequence near '"'
>
> It would appear LuaJIT is simply being stricter about escape sequences
> in strings. in the regular Lua interpreter, "\-" translates into "\\-"
> because "\-" is not a valid escape sequence. In LuaJIT, you get an
> actual error...

Lua 5.2.0-beta (as of rc7 [1,2]) (as well as Metalua) is also stricter
about this:

$ ./src/lua
Lua 5.2.0 (beta)  Copyright (C) 1994-2011 Lua.org, PUC-Rio
> ="\-"
stdin:1: invalid escape sequence near '\-'

[1] http://lua-users.org/lists/lua-l/2011-07/msg00219.html
[2] http://lua-users.org/lists/lua-l/2011-07/msg00118.html




--
xxleite@gmail.com
cel.: (11) 7531.7438
site: about.leite.us