diff options
| author | Ryan Liptak <squeek502@hotmail.com> | 2024-06-11 22:13:22 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-06-12 16:49:00 -0400 |
| commit | 0cef727e59d7b0c34756c09f64cbfe4490dcc3e7 (patch) | |
| tree | 4cecb36f3903d8c97a9205dd33e7374cdc9b192f /src/codegen/spirv | |
| parent | 44f4abf3805eb457525a474f243b71373b5c3824 (diff) | |
| download | zig-0cef727e59d7b0c34756c09f64cbfe4490dcc3e7.tar.gz zig-0cef727e59d7b0c34756c09f64cbfe4490dcc3e7.zip | |
More precise error message for unencodable `\u` escapes
The surrogate code points U+D800 to U+DFFF are valid code points but are not Unicode scalar values. This commit makes the error message more accurately reflect what is actually allowed in `\u` escape sequences.
From https://www.unicode.org/versions/Unicode15.0.0/ch03.pdf:
> D71 High-surrogate code point: A Unicode code point in the range U+D800 to U+DBFF.
> D73 Low-surrogate code point: A Unicode code point in the range U+DC00 to U+DFFF.
>
> 3.9 Unicode Encoding Forms
> D76 Unicode scalar value: Any Unicode code point except high-surrogate and low-surrogate code points.
Related: #20270
Diffstat (limited to 'src/codegen/spirv')
0 files changed, 0 insertions, 0 deletions
