Skip to content

Commit

Permalink
syntax: update to Unicode 15
Browse files Browse the repository at this point in the history
Closes #916
  • Loading branch information
BurntSushi committed Nov 5, 2022
1 parent 0d0023e commit 9a18927
Show file tree
Hide file tree
Showing 15 changed files with 598 additions and 255 deletions.
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

0 comments on commit 9a18927

Please sign in to comment.