From 7f39d7b365e45a3e9251834c2af93124965bbb07 Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Wed, 15 Nov 2023 16:48:53 -0500 Subject: [PATCH] Add spec text for RegExp Modifiers --- spec.html | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 64 insertions(+), 4 deletions(-) diff --git a/spec.html b/spec.html index 504dbfdee8..1ad5e2bafa 100644 --- a/spec.html +++ b/spec.html @@ -35467,7 +35467,8 @@

Syntax

`\` AtomEscape[?UnicodeMode, ?NamedCaptureGroups] CharacterClass[?UnicodeMode, ?UnicodeSetsMode] `(` GroupSpecifier[?UnicodeMode]? Disjunction[?UnicodeMode, ?UnicodeSetsMode, ?NamedCaptureGroups] `)` - `(?:` Disjunction[?UnicodeMode, ?UnicodeSetsMode, ?NamedCaptureGroups] `)` + `(?` RegularExpressionFlags `:` Disjunction[?UnicodeMode, ?UnicodeSetsMode, ?NamedCaptureGroups] `)` + `(?` RegularExpressionFlags `-` RegularExpressionFlags `:` Disjunction[?UnicodeMode, ?UnicodeSetsMode, ?NamedCaptureGroups] `)` SyntaxCharacter :: one of `^` `$` `\` `.` `*` `+` `?` `(` `)` `[` `]` `{` `}` `|` @@ -35712,6 +35713,27 @@

Static Semantics: Early Errors

It is a Syntax Error if the MV of the first |DecimalDigits| is strictly greater than the MV of the second |DecimalDigits|. + Atom :: `(?` RegularExpressionFlags `:` Disjunction `)` + + Atom :: `(?` RegularExpressionFlags `-` RegularExpressionFlags `:` Disjunction `)` + AtomEscape :: `k` GroupName