lua-users home
lua-l archive

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

On Fri, Oct 9, 2015 at 10:36 AM, Christopher Kappe <> 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.