Nit: sort and annotate codepoints which should attach as limits (#999)

This commit is contained in:
Leedehai 2023-04-28 12:49:32 -04:00 committed by GitHub
parent 8fa1af8ac8
commit b0c088740e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -337,8 +337,13 @@ fn compute_shifts_up_and_down(
(shift_up, shift_down) (shift_up, shift_down)
} }
/// Codepoints that should have sub- and superscripts attached as limits. /// Unicode codepoints that should have sub- and superscripts attached as limits.
#[rustfmt::skip]
const LIMITS: &[char] = &[ const LIMITS: &[char] = &[
'\u{2210}', '\u{22C1}', '\u{22C0}', '\u{2A04}', '\u{22C2}', '\u{22C3}', '\u{220F}', /**/ '\u{220F}', /**/ '\u{2210}', /**/ '\u{2211}',
'\u{2211}', '\u{2A02}', '\u{2A01}', '\u{2A00}', '\u{2A06}', /**/ '\u{22C0}', /* */ '\u{22C1}',
/**/ '\u{22C2}', /* */ '\u{22C3}',
/**/ '\u{2A00}', /**/ '\u{2A01}', /**/ '\u{2A02}',
/**/ '\u{2A03}', /**/ '\u{2A04}',
/**/ '\u{2A05}', /**/ '\u{2A06}',
]; ];