aboutsummaryrefslogtreecommitdiffstats
path: root/src/token.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-18 11:35:51 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-18 11:35:51 +0200
commit2100b41ee330ef6b088b4d7efdf8ea589a650ceb (patch)
tree5edd1506a9bb64c174f1401fc4417e5859dc61ce /src/token.rs
parentb4aa82f0f1ea3143ab5f221b2c5f564158605c84 (diff)
downloadmarkdown-rs-2100b41ee330ef6b088b4d7efdf8ea589a650ceb.tar.gz
markdown-rs-2100b41ee330ef6b088b4d7efdf8ea589a650ceb.tar.bz2
markdown-rs-2100b41ee330ef6b088b4d7efdf8ea589a650ceb.zip
Remove unneeded token
Diffstat (limited to 'src/token.rs')
-rw-r--r--src/token.rs24
1 files changed, 2 insertions, 22 deletions
diff --git a/src/token.rs b/src/token.rs
index 2e5e2df..fd7999d 100644
--- a/src/token.rs
+++ b/src/token.rs
@@ -492,7 +492,7 @@ pub enum Token {
/// * **Content model**:
/// [`CodeTextData`][Token::CodeTextData],
/// [`CodeTextSequence`][Token::CodeTextSequence],
- /// [`CodeTextLineEnding`][Token::CodeTextLineEnding]
+ /// [`LineEnding`][Token::LineEnding]
/// * **Construct**:
/// [`code_text`][crate::construct::code_text]
///
@@ -521,25 +521,6 @@ pub enum Token {
/// ^
/// ```
CodeTextData,
- /// Line ending in code (text).
- ///
- /// ## Info
- ///
- /// * **Context**:
- /// [`CodeText`][Token::CodeText],
- /// * **Content model**:
- /// void
- /// * **Construct**:
- /// [`code_text`][crate::construct::code_text]
- ///
- /// ## Example
- ///
- /// ```markdown
- /// > | a `b␊
- /// ^
- /// | c` d
- /// ```
- CodeTextLineEnding,
/// Code (text) sequence.
///
/// ## Info
@@ -1879,7 +1860,7 @@ pub enum Token {
}
/// List of void tokens, used to make sure everything is working good.
-pub const VOID_TOKENS: [Token; 40] = [
+pub const VOID_TOKENS: [Token; 39] = [
Token::AttentionSequence,
Token::AutolinkEmail,
Token::AutolinkMarker,
@@ -1896,7 +1877,6 @@ pub const VOID_TOKENS: [Token; 40] = [
Token::CodeFencedFenceSequence,
Token::CodeFlowChunk,
Token::CodeTextData,
- Token::CodeTextLineEnding,
Token::CodeTextSequence,
Token::Data,
Token::DefinitionDestinationLiteralMarker,