[heycam/webidl] Ident underscore escape confusion (#939)

In the [Names](https://heycam.github.io/webidl/#idl-names) section, it says:

> The identifier of any of the abovementioned IDL constructs (except operation arguments) must not be "constructor", "toString", or begin with a U+005F LOW LINE ("_") character. These are known as reserved identifiers.

The term “identifier” is defined earlier as “the value of the identifier token with any leading U+005F LOW LINE ("_") character (underscore) removed.” Since the grammar for the ID token doesn’t match anything with _two_ leading underscores, it doesn’t seem to make sense to say IDs with an initial U+5F are “reserved.” It seems like a sort of “my ‘IDs can’t start with U+180E’ shirt has people asking a lot of questions already answered by my shirt” thing cause it makes you think it’s trying to say something about the raw string matched by the token grammar again, but I’m pretty sure(?) that’s not the intent.

-- 
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/939

Received on Thursday, 19 November 2020 14:18:14 UTC