golang/doc/next
Russ Cox 930cf59ba8 regexp/syntax: recognize category aliases like \p{Letter}
The Unicode specification defines aliases for some of the general
category names. For example the category "L" has alias "Letter".

The regexp package supports \p{L} but not \p{Letter}, because there
was nothing in the Unicode tables that lets regexp know about Letter.
Now that package unicode provides CategoryAliases (see #70780),
we can use it to provide \p{Letter} as well.

This is the only feature missing from making package regexp suitable
for use in a JSON-API Schema implementation. (The official test suite
includes usage of aliases like \p{Letter} instead of \p{L}.)

For better conformity with Unicode TR18, also accept case-insensitive
matches for names and ignore underscores, hyphens, and spaces;
and add Any, ASCII, and Assigned.

Fixes #70781.

Change-Id: I50ff024d99255338fa8d92663881acb47f1e92a5
Reviewed-on: https://go-review.googlesource.com/c/go/+/641377
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
2025-04-18 14:13:38 -07:00
..
6-stdlib regexp/syntax: recognize category aliases like \p{Letter} 2025-04-18 14:13:38 -07:00
1-intro.md doc: initialize next directory for Go 1.25 2025-02-03 07:52:07 -08:00
2-language.md doc: initialize next directory for Go 1.25 2025-02-03 07:52:07 -08:00
3-tools.md cmd/vet: add waitgroup analyzer 2025-04-01 15:09:39 -07:00
4-runtime.md internal/godebugs: add decoratemappings as an opaque godebug setting 2025-03-10 08:29:59 -07:00
5-toolchain.md doc: document change in nil-ptr checking behavior 2025-03-18 15:22:33 -07:00
7-ports.md doc/go1.25: document macOS requirements 2025-04-07 11:04:56 -07:00