Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Review nits #35

@anba

Description

@anba

https://tc39.github.io/proposal-regexp-named-groups/#sec-backreference-matcher

Let len be s's length.

should be:

Let len be the number of elements in s.

because s is a List and the length of a List is typically accessed through the term "the number of elements in ...".

https://tc39.github.io/proposal-regexp-named-groups/#sec-atomescape

  • Typo: "an RegExpIdentifierName" -> s/an/a/
  • The "for an RegExpIdentifierName" in "Search the enclosing RegExp for an instance of a GroupSpecifier for an RegExpIdentifierName which has ..." doesn't sound grammatically correct to me.

https://tc39.github.io/proposal-regexp-named-groups/#sec-regexpbuiltinexec
https://tc39.github.io/proposal-regexp-named-groups/#sec-getsubstitution
https://tc39.github.io/proposal-regexp-named-groups/#sec-regexp.prototype-@@replace

  • If-steps with sub-steps need a trailing, ", then".

https://tc39.github.io/proposal-regexp-named-groups/#annex-b-grammar

  • AtomEscape :: [+N] k GroupName is missing
  • I don't understand why SourceCharacterIdentityEscape[N] :: [+N] SourceCharacter but not one of c or k was added. Annex B only has IdentityEscape :: [~U] SourceCharacter but not c to ensure /\c/ is parsed as /\\c/ instead of /c/, but I don't see why that monstrosity is also needed for k. Am I overlooking some detail? Edit: see comment below

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions