[Date Prev][Date Next][Thread Prev][Thread Next]
- 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 <firstname.lastname@example.org> wrote:
> This contradicts the following sentence from
> 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.