From 2100b41ee330ef6b088b4d7efdf8ea589a650ceb Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 18 Jul 2022 11:35:51 +0200 Subject: Remove unneeded token --- src/construct/code_text.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/construct/code_text.rs') 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, -- cgit