[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua 5.4 local attribute syntax whitespace sensitivity
- From: "Soni \"They/Them\" L." <fakedme@...>
- Date: Wed, 19 Aug 2020 12:39:30 -0300
On 2020-08-19 12:36 p.m., Sergey Zakharchenko wrote:
> As far as i understand, the current (5.4.0) parser requires a space
> after the attribute's closing '>' if it's followed by a '=', resulting
> in an error "'>' expected near '>='" when parsing e.g. "local
> a<close>=f()". I don't mind that too much, but it seems a bit
> inelegant to me. Is it going to stay this way, or will the construct
> without a space be allowed eventually?
actually, it's the lexer that requires it. while it could probably be
done, it'd require a completely different parser design.