Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Issue 2788873002: [regexp] Allow named captures and back-references in non-unicode patterns (Closed)

Created:
3 years, 8 months ago by jgruber
Modified:
3 years, 8 months ago
Reviewers:
Dan Ehrenberg, Yang
CC:
v8-reviews_googlegroups.com, Erik Corry Chromium.org
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

[regexp] Allow named captures and back-references in non-unicode patterns Previously, named captures (and related functionality) were restricted to unicode-mode regexps. This CL extends that support to non-unicode patterns. Named groups are supported regardless of the mode, and named back-references are supported if the regexp is in unicode mode or if it contains a named capture (otherwise '\k' is treated as an identity escape). BUG=v8:5437, v8:6192 Review-Url: https://codereview.chromium.org/2788873002 Cr-Commit-Position: refs/heads/master@{#44324} Committed: https://chromium.googlesource.com/v8/v8/+/a3be9e78c1bdb9332853cf37004697b737f1665f

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -30 lines) Patch
M src/regexp/regexp-parser.h View 2 chunks +6 lines, -2 lines 0 comments Download
M src/regexp/regexp-parser.cc View 12 chunks +40 lines, -14 lines 0 comments Download
M test/mjsunit/harmony/regexp-named-captures.js View 6 chunks +67 lines, -14 lines 1 comment Download

Messages

Total messages: 14 (9 generated)
jgruber
Hi folks, this CL implements non-unicode named capture support without doing a full second parse ...
3 years, 8 months ago (2017-03-31 11:53:01 UTC) #4
jgruber
On 2017/03/31 11:53:01, jgruber wrote: > It's probably best to file a bug for this ...
3 years, 8 months ago (2017-04-03 06:58:42 UTC) #8
Yang
On 2017/04/03 06:58:42, jgruber wrote: > On 2017/03/31 11:53:01, jgruber wrote: > > It's probably ...
3 years, 8 months ago (2017-04-03 07:26:05 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2788873002/1
3 years, 8 months ago (2017-04-03 07:38:18 UTC) #11
commit-bot: I haz the power
3 years, 8 months ago (2017-04-03 08:03:18 UTC) #14
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/v8/v8/+/a3be9e78c1bdb9332853cf37004697b737f...

Powered by Google App Engine
This is Rietveld 408576698