From 7340a46b5c7fdb05796377d8c73c4843b6ae2876 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Sat, 13 May 2023 16:45:56 +0200 Subject: Remove superfluous code --- src/construct/partial_mdx_jsx.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/construct/partial_mdx_jsx.rs b/src/construct/partial_mdx_jsx.rs index 2031a5a..8bf0742 100644 --- a/src/construct/partial_mdx_jsx.rs +++ b/src/construct/partial_mdx_jsx.rs @@ -1060,10 +1060,7 @@ pub fn es_whitespace_inside(tokenizer: &mut Tokenizer) -> State { match tokenizer.current { Some(b'\n') => { tokenizer.exit(Name::MdxJsxEsWhitespace); - tokenizer.enter(Name::LineEnding); - tokenizer.consume(); - tokenizer.exit(Name::LineEnding); - State::Next(StateName::MdxJsxEsWhitespaceEolAfter) + State::Retry(StateName::MdxJsxEsWhitespaceStart) } // Allow continuation bytes. Some(0x80..=0xBF) => { -- cgit