This repository was archived by the owner on Jan 25, 2022. It is now read-only.
forked from goyakin/es-regexp-named-groups
-
Notifications
You must be signed in to change notification settings - Fork 21
This repository was archived by the owner on Jan 25, 2022. It is now read-only.
Review nits #35
Copy link
Copy link
Open
Description
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 missingI don't understand whyEdit: see comment belowSourceCharacterIdentityEscape[N] :: [+N] SourceCharacter but not one of c or k
was added. Annex B only hasIdentityEscape :: [~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 fork
. Am I overlooking some detail?
Metadata
Metadata
Assignees
Labels
No labels