[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: table key starting with backslash
- From: Duncan Cross <duncan.cross@...>
- Date: Fri, 9 Oct 2015 10:48:41 +0100
On Fri, Oct 9, 2015 at 10:36 AM, Christopher Kappe <nox_diesque@web.de> wrote:
> This contradicts the following sentence from
> http://www.lua.org/manual/5.3/manual.html
> A field of the form name = exp is equivalent to ["name"] = exp.
The definition of what the Lua parser considers a "name" is described
in section 3.1, "Lexical Conventions":
"Names (also called identifiers) in Lua can be any string of letters,
digits, and underscores, not beginning with a digit."
> Because all accents combined with all possible letters makes a large
> number, this table is going to be quite long, so I would really be happy
> if I could save the [""]
Unfortunately, you cannot. Not with the standard Lua parser, at least.
-Duncan