aboutsummaryrefslogtreecommitdiffstats
path: root/src/token.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-18 11:30:49 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-18 11:30:49 +0200
commitb4aa82f0f1ea3143ab5f221b2c5f564158605c84 (patch)
tree526f25680d30ad615ee868366545895059384f22 /src/token.rs
parent08b9e5b5c3eddbc948cc9952783c1925b90ed9e0 (diff)
downloadmarkdown-rs-b4aa82f0f1ea3143ab5f221b2c5f564158605c84.tar.gz
markdown-rs-b4aa82f0f1ea3143ab5f221b2c5f564158605c84.tar.bz2
markdown-rs-b4aa82f0f1ea3143ab5f221b2c5f564158605c84.zip
Fix token that should be void
Diffstat (limited to '')
-rw-r--r--src/token.rs44
1 files changed, 44 insertions, 0 deletions
diff --git a/src/token.rs b/src/token.rs
index 8169657..2e5e2df 100644
--- a/src/token.rs
+++ b/src/token.rs
@@ -1877,3 +1877,47 @@ pub enum Token {
/// ```
ThematicBreakSequence,
}
+
+/// List of void tokens, used to make sure everything is working good.
+pub const VOID_TOKENS: [Token; 40] = [
+ Token::AttentionSequence,
+ Token::AutolinkEmail,
+ Token::AutolinkMarker,
+ Token::AutolinkProtocol,
+ Token::BlankLineEnding,
+ Token::BlockQuoteMarker,
+ Token::CharacterEscapeMarker,
+ Token::CharacterEscapeValue,
+ Token::CharacterReferenceMarker,
+ Token::CharacterReferenceMarkerHexadecimal,
+ Token::CharacterReferenceMarkerNumeric,
+ Token::CharacterReferenceMarkerSemi,
+ Token::CharacterReferenceValue,
+ Token::CodeFencedFenceSequence,
+ Token::CodeFlowChunk,
+ Token::CodeTextData,
+ Token::CodeTextLineEnding,
+ Token::CodeTextSequence,
+ Token::Data,
+ Token::DefinitionDestinationLiteralMarker,
+ Token::DefinitionLabelMarker,
+ Token::DefinitionMarker,
+ Token::DefinitionTitleMarker,
+ Token::EmphasisSequence,
+ Token::HardBreakEscapeMarker,
+ Token::HardBreakTrailingSpace,
+ Token::HeadingAtxSequence,
+ Token::HeadingSetextUnderline,
+ Token::HtmlFlowData,
+ Token::HtmlTextData,
+ Token::LabelImageMarker,
+ Token::LabelMarker,
+ Token::LineEnding,
+ Token::ListItemMarker,
+ Token::ListItemValue,
+ Token::ReferenceMarker,
+ Token::ResourceMarker,
+ Token::ResourceTitleMarker,
+ Token::StrongSequence,
+ Token::ThematicBreakSequence,
+];