Commit 24b64cd
committed
Lex whitespace in range quantifiers
PCRE does not allow whitespace here, instead
treating the sequence as literal if whitespace is
present. However this behavior is quite
unintuitive. Instead, lex whitespace between range
operands.1 parent 9d84967 commit 24b64cd
File tree
3 files changed
+27
-9
lines changed- Sources/_RegexParser/Regex/Parse
- Tests/RegexTests
3 files changed
+27
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
433 | | - | |
| 433 | + | |
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
459 | | - | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
460 | 462 | | |
461 | 463 | | |
| 464 | + | |
| 465 | + | |
462 | 466 | | |
463 | 467 | | |
| 468 | + | |
| 469 | + | |
464 | 470 | | |
465 | 471 | | |
466 | 472 | | |
| |||
480 | 486 | | |
481 | 487 | | |
482 | 488 | | |
| 489 | + | |
| 490 | + | |
483 | 491 | | |
484 | 492 | | |
485 | 493 | | |
486 | 494 | | |
487 | 495 | | |
| 496 | + | |
| 497 | + | |
488 | 498 | | |
489 | 499 | | |
490 | 500 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| 344 | + | |
| 345 | + | |
344 | 346 | | |
345 | 347 | | |
| 348 | + | |
| 349 | + | |
346 | 350 | | |
347 | 351 | | |
348 | 352 | | |
| |||
351 | 355 | | |
352 | 356 | | |
353 | 357 | | |
| 358 | + | |
| 359 | + | |
354 | 360 | | |
355 | 361 | | |
356 | 362 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
832 | 832 | | |
833 | 833 | | |
834 | 834 | | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
835 | 839 | | |
836 | 840 | | |
837 | 841 | | |
| |||
851 | 855 | | |
852 | 856 | | |
853 | 857 | | |
854 | | - | |
855 | | - | |
856 | | - | |
857 | | - | |
858 | | - | |
859 | 858 | | |
860 | 859 | | |
861 | 860 | | |
| |||
1771 | 1770 | | |
1772 | 1771 | | |
1773 | 1772 | | |
1774 | | - | |
| 1773 | + | |
1775 | 1774 | | |
1776 | 1775 | | |
1777 | | - | |
| 1776 | + | |
1778 | 1777 | | |
1779 | 1778 | | |
1780 | 1779 | | |
| |||
2695 | 2694 | | |
2696 | 2695 | | |
2697 | 2696 | | |
| 2697 | + | |
| 2698 | + | |
| 2699 | + | |
2698 | 2700 | | |
2699 | 2701 | | |
2700 | 2702 | | |
| |||
0 commit comments