Commit 477799c
committed
fix(regex): accept annex b control escapes
Test262 flips through zig-js:
- test/annexB/built-ins/RegExp: 5 fail/57 pass -> 0 fail/62 pass (+5)
- test/annexB: 61 fail/1025 pass -> 56 fail/1030 pass (+5)
Verification:
- zig test --dep regex -Mroot=tests/parser_compiler_edge_cases.zig -Mregex=src/root.zig --test-filter "annex b character class escapes"
- zig test --dep regex -Mroot=tests/parser_compiler_edge_cases.zig -Mregex=src/root.zig
- zig run --dep regex -Mroot=/private/tmp/zig_regex_probe.zig -Mregex=/Users/chris/Code/Libraries/zig-regex/src/root.zig
- (zig-js) zig build test262-bin
- (zig-js) ./zig-out/bin/test262 --diag test/annexB/built-ins/RegExp
- (zig-js) ./zig-out/bin/test262 --diag test/language/literals/regexp
- (zig-js) ./zig-out/bin/test262 --diag test/annexB
- git diff --check
- git diff --cached --check
Notes:
- zig build test in zig-regex was interrupted after the benchmark shard stayed silent; the focused parser/compiler file passed with explicit module wiring.
- test/language/literals/regexp still has 3 existing braced-quantifier negative failures.1 parent 773dc0c commit 477799c
2 files changed
Lines changed: 48 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
140 | 150 | | |
141 | 151 | | |
142 | 152 | | |
| |||
215 | 225 | | |
216 | 226 | | |
217 | 227 | | |
218 | | - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
219 | 232 | | |
220 | 233 | | |
221 | 234 | | |
| |||
225 | 238 | | |
226 | 239 | | |
227 | 240 | | |
228 | | - | |
| 241 | + | |
229 | 242 | | |
230 | 243 | | |
231 | 244 | | |
| |||
1533 | 1546 | | |
1534 | 1547 | | |
1535 | 1548 | | |
| 1549 | + | |
1536 | 1550 | | |
1537 | 1551 | | |
| 1552 | + | |
| 1553 | + | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
1538 | 1558 | | |
1539 | | - | |
| 1559 | + | |
1540 | 1560 | | |
1541 | 1561 | | |
1542 | 1562 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
244 | 250 | | |
245 | 251 | | |
246 | 252 | | |
| |||
250 | 256 | | |
251 | 257 | | |
252 | 258 | | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
253 | 278 | | |
254 | 279 | | |
255 | 280 | | |
| |||
0 commit comments