Skip to content

Commit

Permalink
Normative: allow named capture groups in Annex B non-u regex grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkot committed Apr 9, 2022
1 parent 9fec769 commit ce08446
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -46953,7 +46953,7 @@ <h2>Syntax</h2>
`\` AtomEscape[~UnicodeMode, ?N]
`\` [lookahead == `c`]
CharacterClass[~UnicodeMode]
`(` Disjunction[~UnicodeMode, ?N] `)`
`(` GroupSpecifier Disjunction[~UnicodeMode, ?N] `)`
`(` `?` `:` Disjunction[~UnicodeMode, ?N] `)`
InvalidBracedQuantifier
ExtendedPatternCharacter
Expand Down Expand Up @@ -47076,7 +47076,7 @@ <h1>Static Semantics: CharacterValue</h1>
<emu-annex id="sec-compilesubpattern-annexb" oldids="sec-regular-expression-patterns-semantics">
<h1>Runtime Semantics: CompileSubpattern</h1>
<p>The semantics of CompileSubpattern is extended as follows:</p>
<p>Within the rule for <emu-grammar>Term :: Atom Quantifier</emu-grammar>, references to &ldquo;<emu-grammar>Atom :: `(` GroupSpecifier Disjunction `)`</emu-grammar> &rdquo; are to be interpreted as meaning &ldquo;<emu-grammar>Atom :: `(` GroupSpecifier Disjunction `)`</emu-grammar> &rdquo; or &ldquo;<emu-grammar>ExtendedAtom :: `(` Disjunction `)`</emu-grammar> &rdquo;.</p>
<p>Within the rule for <emu-grammar>Term :: Atom Quantifier</emu-grammar>, references to &ldquo;<emu-grammar>Atom :: `(` GroupSpecifier Disjunction `)`</emu-grammar> &rdquo; are to be interpreted as meaning &ldquo;<emu-grammar>Atom :: `(` GroupSpecifier Disjunction `)`</emu-grammar> &rdquo; or &ldquo;<emu-grammar>ExtendedAtom :: `(` GroupSpecifier Disjunction `)`</emu-grammar> &rdquo;.</p>

<p>The rule for <emu-grammar>Term :: QuantifiableAssertion Quantifier</emu-grammar> is the same as for <emu-grammar>Term :: Atom Quantifier</emu-grammar> but with |QuantifiableAssertion| substituted for |Atom|.</p>
<p>The rule for <emu-grammar>Term :: ExtendedAtom Quantifier</emu-grammar> is the same as for <emu-grammar>Term :: Atom Quantifier</emu-grammar> but with |ExtendedAtom| substituted for |Atom|.</p>
Expand Down

0 comments on commit ce08446

Please sign in to comment.