tc39 / ecmarkup

An HTML superset/Markdown subset source format for ECMAScript and related specifications
https://tc39.es/ecmarkup/
MIT License
222 stars 63 forks source link

Accept dot inside intrinsic name in header #564

Closed arai-a closed 11 months ago

arai-a commented 11 months ago

The current rule doesn't accept a dot inside the intrinsic name in header, but there are multiple intrinsics that has dots inside their names, such as %GeneratorFunction.prototype.prototype%.

This allows the solution (A) in https://github.com/tc39/ecma262/issues/3230

ljharb commented 11 months ago

If that solution ends up not being adopted (I personally don't think there's a problem that needs solving, and I think the solution is less readable), would this change be needed?

arai-a commented 11 months ago

This is necessary only for https://github.com/tc39/ecma262/issues/3230 , and if we go with different way (for example, change the definition of Generator there, or add another intrinsic like %GeneratorPrototype% and use it), this change it not needed.

arai-a commented 11 months ago

Closing given https://github.com/tc39/ecma262/pull/3234 is superseded by https://github.com/tc39/ecma262/pull/3238 with %GeneratorPrototype%, which doesn't have a dot inside %.