tc39 / ecmarkup

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

Should spaces between AO names and arguments be allowed? #540

Open justingrant opened 1 year ago

justingrant commented 1 year ago

From https://github.com/tc39/proposal-temporal/pull/2574/files#r1235598629, I was surprised that ecmarkup didn't complain about there being a space between the name of an AO and its argument list.

Example: the following spec text didn't cause ecmarkup errors.

1. Set _item_ to ? ToPrimitive (_item_, ~string~).

I wasn't sure if this was another one of those cases of "whitespace is handled by the formatter" like https://github.com/tc39/ecmarkup/issues/536, but the build job complains about some whitespace issues (e.g. trailing spaces at end of line) so I figured I'd file this issue just in case this was the kind of whitespace issue that the build job should be worrying about.