Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serialize the next numeric name #215

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion spec.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1412,7 +1412,7 @@ To <dfn>add a part</dfn> given a [=pattern parser=] |parser|, a string |prefix|,
<p class=note>Next, we determine the [=part=] [=part/name=]. This can be explicitly provided by a "<a for=token/type>`name`</a>" [=token=] or be automatically assigned.</a>
1. If |name token| is not null, then set |name| to |name token|'s [=token/value=].
1. Otherwise if |regexp or wildcard token| is not null:
1. Set |name| to |parser|'s [=pattern parser/next numeric name=].
1. Set |name| to |parser|'s [=pattern parser/next numeric name=], [=serialize an integer|serialized=].
1. Increment |parser|'s [=pattern parser/next numeric name=] by 1.
1. If the result of running [=is a duplicate name=] given |parser| and |name| is true, then throw a {{TypeError}}.
1. Let |encoded prefix| be the result of running |parser|'s [=pattern parser/encoding callback=] given |prefix|.
Expand Down
Loading