lua-users home
lua-l archive

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


On Jan 11, 2012, at 10:19 AM, Galanin Mikhail wrote:

>> print('test\)')       
> stdin:1: invalid escape sequence near ''test'

This is in line with 5.2 behavior as well:

$ lua -v TestString.lua
Lua 5.2.0  Copyright (C) 1994-2011 Lua.org, PUC-Rio
lua: TestString.lua:1: invalid escape sequence near '\)'

In short, watch out these escape sequences!