From 1179cb80e3edf48f39ef33daa23fe1bec74debce Mon Sep 17 00:00:00 2001 From: Michael Saboff Date: Mon, 4 Apr 2016 11:22:22 -0700 Subject: [PATCH 1/2] Proposed RegExp CharacterClassEscape changes for \W/ui --- spec.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/spec.html b/spec.html index 55fe7819e5..70348881af 100644 --- a/spec.html +++ b/spec.html @@ -28110,8 +28110,8 @@

AtomEscape

The production AtomEscape :: CharacterClassEscape evaluates as follows:

- 1. Evaluate |CharacterClassEscape| to obtain a CharSet _A_. - 1. Call CharacterSetMatcher(_A_, *false*) and return its Matcher result. + 1. Evaluate |CharacterClassEscape| to obtain a CharSet _A_ and a Boolean _invert_. + 1. Call CharacterSetMatcher(_A_, _invert_) and return its Matcher result.

An escape sequence of the form `\\` followed by a nonzero decimal number _n_ matches the result of the _n_th set of capturing parentheses (see 0). It is an error if the regular expression has fewer than _n_ capturing parentheses. If the regular expression has _n_ or more capturing parentheses but the _n_th one is *undefined* because it has not captured anything, then the backreference always succeeds.

@@ -28308,10 +28308,10 @@

DecimalEscape

CharacterClassEscape

-

The production CharacterClassEscape :: `d` evaluates by returning the ten-element set of characters containing the characters `0` through `9` inclusive.

-

The production CharacterClassEscape :: `D` evaluates by returning the set of all characters not included in the set returned by CharacterClassEscape :: `d` .

+

The production CharacterClassEscape :: `d` evaluates by returning the ten-element set of characters containing the characters `0` through `9` inclusive and the Boolean *false*.

+

The production CharacterClassEscape :: `D` evaluates by returning the set returned by CharacterClassEscape :: `d` and the Boolean *true*.

The production CharacterClassEscape :: `s` evaluates by returning the set of characters containing the characters that are on the right-hand side of the |WhiteSpace| or |LineTerminator| productions.

-

The production CharacterClassEscape :: `S` evaluates by returning the set of all characters not included in the set returned by CharacterClassEscape :: `s` .

+

The production CharacterClassEscape :: `S` evaluates by returning the set returned by CharacterClassEscape :: `s` and the Boolean *true*.

The production CharacterClassEscape :: `w` evaluates by returning the set of characters containing the sixty-three characters:

@@ -28544,7 +28544,8 @@

CharacterClassEscape

-

The production CharacterClassEscape :: `W` evaluates by returning the set of all characters not included in the set returned by CharacterClassEscape :: `w` .

+

and the Boolean *false*. +

The production CharacterClassEscape :: `W` evaluates by returning the set returned by CharacterClassEscape :: `w` and the Boolean *true*.

From 1944b451b767e30575150204d0d28a8ae270a3a5 Mon Sep 17 00:00:00 2001 From: Michael Saboff Date: Mon, 4 Apr 2016 13:15:35 -0700 Subject: [PATCH 2/2] Minor corrections. --- spec.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec.html b/spec.html index 70348881af..e5131f6434 100644 --- a/spec.html +++ b/spec.html @@ -28310,7 +28310,7 @@

DecimalEscape

CharacterClassEscape

The production CharacterClassEscape :: `d` evaluates by returning the ten-element set of characters containing the characters `0` through `9` inclusive and the Boolean *false*.

The production CharacterClassEscape :: `D` evaluates by returning the set returned by CharacterClassEscape :: `d` and the Boolean *true*.

-

The production CharacterClassEscape :: `s` evaluates by returning the set of characters containing the characters that are on the right-hand side of the |WhiteSpace| or |LineTerminator| productions.

+

The production CharacterClassEscape :: `s` evaluates by returning the set of characters containing the characters that are on the right-hand side of the |WhiteSpace| or |LineTerminator| productions and the Boolean *false*.

The production CharacterClassEscape :: `S` evaluates by returning the set returned by CharacterClassEscape :: `s` and the Boolean *true*.

The production CharacterClassEscape :: `w` evaluates by returning the set of characters containing the sixty-three characters:

@@ -28544,7 +28544,7 @@

CharacterClassEscape

-

and the Boolean *false*. +

and the Boolean *false*.

The production CharacterClassEscape :: `W` evaluates by returning the set returned by CharacterClassEscape :: `w` and the Boolean *true*.