From 6422737cf396cf7e36ba63d2e89535bfcfc32264 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=B6lting=2C=20Moritz=20=28Intern=29?= Date: Wed, 28 Aug 2024 13:09:19 +0200 Subject: [PATCH] fix error on literal command directly after comment --- src/lexical/token.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/lexical/token.rs b/src/lexical/token.rs index 8cb964b..dee23ec 100644 --- a/src/lexical/token.rs +++ b/src/lexical/token.rs @@ -455,17 +455,8 @@ impl Token { Self::walk_iter(iter, |character| !(character == '\n' || character == '\r')); - let is_cr = iter - .peek() - .map_or(false, |(_, character)| character == '\r'); - let span = Self::create_span(start, iter); - if let (true, Some((_, '\n'))) = (is_cr, iter.next()) { - // skips the crlf - iter.next(); - } - let comment = if is_doccomment { DocComment { span }.into() } else {