aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-15 12:35:35 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-15 12:36:36 +0200
commit8c438ea9c8fb5c605d8b179637ced6971d8902e7 (patch)
tree33f6067ba18a688d3ce1b3456c2e9c3f7c140898
parent66c70d1b917976c32b770e5d724fc4e47a2309c6 (diff)
downloadmarkdown-rs-8c438ea9c8fb5c605d8b179637ced6971d8902e7.tar.gz
markdown-rs-8c438ea9c8fb5c605d8b179637ced6971d8902e7.tar.bz2
markdown-rs-8c438ea9c8fb5c605d8b179637ced6971d8902e7.zip
Remove unneeded token
Diffstat (limited to '')
-rw-r--r--src/construct/block_quote.rs6
-rw-r--r--src/token.rs21
2 files changed, 4 insertions, 23 deletions
diff --git a/src/construct/block_quote.rs b/src/construct/block_quote.rs
index 096ac0a..483516c 100644
--- a/src/construct/block_quote.rs
+++ b/src/construct/block_quote.rs
@@ -22,7 +22,7 @@
//! * [`BlockQuote`][Token::BlockQuote]
//! * [`BlockQuoteMarker`][Token::BlockQuoteMarker]
//! * [`BlockQuotePrefix`][Token::BlockQuotePrefix]
-//! * [`BlockQuoteWhitespace`][Token::BlockQuoteWhitespace]
+//! * [`SpaceOrTab`][Token::SpaceOrTab]
//!
//! ## References
//!
@@ -102,9 +102,9 @@ fn cont_before(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
fn cont_after(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult {
match code {
Code::VirtualSpace | Code::Char('\t' | ' ') => {
- tokenizer.enter(Token::BlockQuoteWhitespace);
+ tokenizer.enter(Token::SpaceOrTab);
tokenizer.consume(code);
- tokenizer.exit(Token::BlockQuoteWhitespace);
+ tokenizer.exit(Token::SpaceOrTab);
tokenizer.exit(Token::BlockQuotePrefix);
(State::Ok, None)
}
diff --git a/src/token.rs b/src/token.rs
index 825b9cd..8169657 100644
--- a/src/token.rs
+++ b/src/token.rs
@@ -145,7 +145,7 @@ pub enum Token {
/// [`BlockQuote`][Token::BlockQuote]
/// * **Content model**:
/// [`BlockQuoteMarker`][Token::BlockQuoteMarker],
- /// [`BlockQuoteWhitespace`][Token::BlockQuoteWhitespace]
+ /// [`SpaceOrTab`][Token::SpaceOrTab]
/// * **Construct**:
/// [`block_quote`][crate::construct::block_quote]
///
@@ -157,25 +157,6 @@ pub enum Token {
/// | b
/// ```
BlockQuotePrefix,
- /// Block quote white space.
- ///
- /// ## Info
- ///
- /// * **Context**:
- /// [`BlockQuotePrefix`][Token::BlockQuotePrefix]
- /// * **Content model**:
- /// void
- /// * **Construct**:
- /// [`block_quote`][crate::construct::block_quote]
- ///
- /// ## Example
- ///
- /// ```markdown
- /// > | > a
- /// ^
- /// | b
- /// ```
- BlockQuoteWhitespace,
/// Whole character escape.
///
/// ## Info