Fix tag list order

This commit is contained in:
Laurenz 2023-10-19 19:57:47 +02:00
parent 76d4c39ce4
commit 208711203e

View File

@ -48,7 +48,9 @@ pub enum Tag {
} }
impl Tag { impl Tag {
/// The list of all tags. /// The list of all tags, in the same order as thy are defined.
///
/// Can be used as the counter-part to `tag as usize`.
pub const LIST: &'static [Tag] = &[ pub const LIST: &'static [Tag] = &[
Self::Comment, Self::Comment,
Self::Punctuation, Self::Punctuation,
@ -57,13 +59,13 @@ impl Tag {
Self::Emph, Self::Emph,
Self::Link, Self::Link,
Self::Raw, Self::Raw,
Self::MathDelimiter, Self::Label,
Self::MathOperator, Self::Ref,
Self::Heading, Self::Heading,
Self::ListMarker, Self::ListMarker,
Self::ListTerm, Self::ListTerm,
Self::Label, Self::MathDelimiter,
Self::Ref, Self::MathOperator,
Self::Keyword, Self::Keyword,
Self::Operator, Self::Operator,
Self::Number, Self::Number,