lua-users home
lua-l archive

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


On 1 July 2016 at 07:34, Martin <eden_martin_fuhrspam@gmx.de> wrote:
> In lua key-value pair in table may be defined as
>
>   "[" <expr> "]" "=" <expr>
>
> How you this is correctly to handle cases like "[[[\]]] = [[\\]]"
> (mapping backspace to quoted version)? For me it looks like syntax flaw.

You can avoid this by adding a space:

t = { [ [[\]] ] = [[\\]] }

-- Hisham