Re: [heycam/webidl] Allow `object` for attribute names? (#845)

@annevk I think the issue is in how the lexical grammar is defined rather than being about disambiguating top level syntactic constructs or idents within types.

If a literal teletype terminal appears anywhere in the grammar, it becomes a unique non-terminal which is subtracted from any pattern-based non-terminals that the same string would otherwise have matched. So if "object" appears as a literal terminal anywhere in the grammar, it isn’t an identifier, and to make it available as one, it has to be explicitly whitelisted as an alternative where that’s desired.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/845#issuecomment-597339741

Received on Tuesday, 10 March 2020 22:04:49 UTC