diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-07-18 11:35:51 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-07-18 11:35:51 +0200 |
commit | 2100b41ee330ef6b088b4d7efdf8ea589a650ceb (patch) | |
tree | 5edd1506a9bb64c174f1401fc4417e5859dc61ce /src/construct/code_text.rs | |
parent | b4aa82f0f1ea3143ab5f221b2c5f564158605c84 (diff) | |
download | markdown-rs-2100b41ee330ef6b088b4d7efdf8ea589a650ceb.tar.gz markdown-rs-2100b41ee330ef6b088b4d7efdf8ea589a650ceb.tar.bz2 markdown-rs-2100b41ee330ef6b088b4d7efdf8ea589a650ceb.zip |
Remove unneeded token
Diffstat (limited to 'src/construct/code_text.rs')
-rw-r--r-- | src/construct/code_text.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/construct/code_text.rs b/src/construct/code_text.rs index 6df61b8..039f4b2 100644 --- a/src/construct/code_text.rs +++ b/src/construct/code_text.rs @@ -69,8 +69,8 @@ //! //! * [`CodeText`][Token::CodeText] //! * [`CodeTextData`][Token::CodeTextData] -//! * [`CodeTextLineEnding`][Token::CodeTextLineEnding] //! * [`CodeTextSequence`][Token::CodeTextSequence] +//! * [`LineEnding`][Token::LineEnding] //! //! ## References //! @@ -139,9 +139,9 @@ fn between(tokenizer: &mut Tokenizer, code: Code, size_open: usize) -> StateFnRe match code { Code::None => (State::Nok, None), Code::CarriageReturnLineFeed | Code::Char('\n' | '\r') => { - tokenizer.enter(Token::CodeTextLineEnding); + tokenizer.enter(Token::LineEnding); tokenizer.consume(code); - tokenizer.exit(Token::CodeTextLineEnding); + tokenizer.exit(Token::LineEnding); ( State::Fn(Box::new(move |t, c| between(t, c, size_open))), None, |