> > > It seems like "global attnamelist" is also wrong in another way: When
> you
> > > don't supply the ['=' explist], it doesn't accept a spread attribute
> (first
> > > attribute shared between all declared values).
> >
> > Are you talking about the code or the documentation? Which version?
>
> I'm talking about the Lua 5.5 documentation:
>
https://lua.org/manual/5.5/manual.html#9.
The documentation there says this:
stat ::= [...] | global attnamelist
attnamelist ::= [attrib] Name [attrib] {‘,’ Name [attrib]}
attrib ::= ‘<’ Name ‘>’
As already pointed out, it misses the optional ['=' explist]. Apart from
that, 'attnamelist' starts with the "spread attribute".
-- Roberto