Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

syntax: update to Unicode 15 #926

Merged
merged 1 commit into from Nov 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions regex-syntax/src/unicode.rs
Expand Up @@ -605,6 +605,7 @@ fn ages(canonical_age: &str) -> Result<impl Iterator<Item = Range>> {
("V12_1", age::V12_1),
("V13_0", age::V13_0),
("V14_0", age::V14_0),
("V15_0", age::V15_0),
];
assert_eq!(AGES.len(), age::BY_NAME.len(), "ages are out of sync");

Expand Down
42 changes: 39 additions & 3 deletions regex-syntax/src/unicode_tables/age.rs
@@ -1,10 +1,10 @@
// DO NOT EDIT THIS FILE. IT WAS AUTOMATICALLY GENERATED BY:
//
// ucd-generate age /tmp/ucd --chars
// ucd-generate age ucd-15.0.0 --chars
//
// Unicode version: 14.0.0.
// Unicode version: 15.0.0.
//
// ucd-generate 0.2.11 is available on crates.io.
// ucd-generate 0.2.14 is available on crates.io.

pub const BY_NAME: &'static [(&'static str, &'static [(char, char)])] = &[
("V10_0", V10_0),
Expand All @@ -13,6 +13,7 @@ pub const BY_NAME: &'static [(&'static str, &'static [(char, char)])] = &[
("V12_1", V12_1),
("V13_0", V13_0),
("V14_0", V14_0),
("V15_0", V15_0),
("V1_1", V1_1),
("V2_0", V2_0),
("V2_1", V2_1),
Expand Down Expand Up @@ -346,6 +347,41 @@ pub const V14_0: &'static [(char, char)] = &[
('𫜵', '𫜸'),
];

pub const V15_0: &'static [(char, char)] = &[
('ೳ', 'ೳ'),
('\u{ece}', '\u{ece}'),
('\u{10efd}', '\u{10eff}'),
('𑈿', '\u{11241}'),
('𑬀', '𑬉'),
('\u{11f00}', '𑼐'),
('𑼒', '\u{11f3a}'),
('𑼾', '𑽙'),
('𓐯', '𓐯'),
('\u{13439}', '\u{13455}'),
('𛄲', '𛄲'),
('𛅕', '𛅕'),
('𝋀', '𝋓'),
('𝼥', '𝼪'),
('𞀰', '𞁭'),
('\u{1e08f}', '\u{1e08f}'),
('𞓐', '𞓹'),
('🛜', '🛜'),
('🝴', '🝶'),
('🝻', '🝿'),
('🟙', '🟙'),
('🩵', '🩷'),
('🪇', '🪈'),
('🪭', '🪯'),
('🪻', '🪽'),
('🪿', '🪿'),
('🫎', '🫏'),
('🫚', '🫛'),
('🫨', '🫨'),
('🫷', '🫸'),
('𫜹', '𫜹'),
('𱍐', '𲎯'),
];

pub const V1_1: &'static [(char, char)] = &[
('\0', 'ǵ'),
('Ǻ', 'ȗ'),
Expand Down
6 changes: 3 additions & 3 deletions regex-syntax/src/unicode_tables/case_folding_simple.rs
@@ -1,10 +1,10 @@
// DO NOT EDIT THIS FILE. IT WAS AUTOMATICALLY GENERATED BY:
//
// ucd-generate case-folding-simple /tmp/ucd --chars --all-pairs
// ucd-generate case-folding-simple ucd-15.0.0 --chars --all-pairs
//
// Unicode version: 14.0.0.
// Unicode version: 15.0.0.
//
// ucd-generate 0.2.11 is available on crates.io.
// ucd-generate 0.2.14 is available on crates.io.

pub const CASE_FOLDING_SIMPLE: &'static [(char, &'static [char])] = &[
('A', &['a']),
Expand Down