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

Issue 2808803002: [regexp] implement \p{Other_ID_Start} and \p{Other_ID_Continue}. (Closed)

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

Description

[regexp] implement \p{Other_ID_Start} and \p{Other_ID_Continue}. Other_ID_Start and Other_ID_Continue are not supported by ICU, so for now we implement these manually as special binary property classes. R=jgruber@chromium.org BUG=v8:4743 Review-Url: https://codereview.chromium.org/2808803002 Cr-Commit-Position: refs/heads/master@{#44549} Committed: https://chromium.googlesource.com/v8/v8/+/26e5d0129ca501e4dbadaa098e65222687ce4ab0

Patch Set 1 #

Patch Set 2 : small fix #

Total comments: 4

Patch Set 3 : rebase #

Patch Set 4 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -23 lines) Patch
M src/regexp/regexp-parser.cc View 1 5 chunks +56 lines, -18 lines 0 comments Download
M test/mjsunit/harmony/regexp-property-special.js View 1 2 3 1 chunk +13 lines, -5 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
Yang
3 years, 8 months ago (2017-04-10 11:38:41 UTC) #1
jgruber
lgtm https://codereview.chromium.org/2808803002/diff/20001/test/mjsunit/harmony/regexp-property-special.js File test/mjsunit/harmony/regexp-property-special.js (right): https://codereview.chromium.org/2808803002/diff/20001/test/mjsunit/harmony/regexp-property-special.js#newcode54 test/mjsunit/harmony/regexp-property-special.js:54: t(/[x\P{OIDS}]/u, "\u1885\u1886\u2118\u212e\u309b\u309cx"); Is this test missing anchors? Otherwise ...
3 years, 8 months ago (2017-04-10 13:46:50 UTC) #2
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/2808803002/60001
3 years, 8 months ago (2017-04-11 05:55:07 UTC) #5
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/v8/v8/+/26e5d0129ca501e4dbadaa098e65222687ce4ab0
3 years, 8 months ago (2017-04-11 07:10:40 UTC) #8
Yang
3 years, 8 months ago (2017-04-11 09:00:37 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/2808803002/diff/20001/test/mjsunit/harmony/re...
File test/mjsunit/harmony/regexp-property-special.js (right):

https://codereview.chromium.org/2808803002/diff/20001/test/mjsunit/harmony/re...
test/mjsunit/harmony/regexp-property-special.js:54: t(/[x\P{OIDS}]/u,
"\u1885\u1886\u2118\u212e\u309b\u309cx");
On 2017/04/10 13:46:50, jgruber wrote:
> Is this test missing anchors? Otherwise it will match just due to the 'x'.

Good catch. Fixed.

https://codereview.chromium.org/2808803002/diff/20001/test/mjsunit/harmony/re...
test/mjsunit/harmony/regexp-property-special.js:56:
t(/^\p{Other_ID_Continue}+$/u, "\u00b7\u0387\u1369\u1371\u19da");
On 2017/04/10 13:46:50, jgruber wrote:
> We could include 
> 
> 0x136A, 0x136B, 0x136C, 0x136D, 0x136E, 0x136F, 0x1370
> 
> just to be complete.

Done.

Powered by Google App Engine
This is Rietveld 408576698