Commit c56f3ac
committed
gh-95555: Fix a stale comment about negating \P in a character class
GH-152245 lifted the restriction that a negated multi-range property
could not appear inside a character class, and added assertions in
test_property_escapes showing that [\P{ASCII}] and friends now match.
It left in place an earlier comment in the same test saying that,
unlike an engine category, \P of a multi-range property cannot be
negated inside a character class.
The distinction that remains is how the member is compiled, not
whether it is allowed: an engine category joins the set directly as a
CATEGORY, while a multi-range \P is alternated in as a separate branch.1 parent 45e5b1b commit c56f3ac
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1010 | 1010 | | |
1011 | 1011 | | |
1012 | 1012 | | |
1013 | | - | |
1014 | | - | |
| 1013 | + | |
| 1014 | + | |
1015 | 1015 | | |
1016 | 1016 | | |
1017 | 1017 | | |
| |||
0 commit comments