fix error on literal command directly after comment

This commit is contained in:
Hölting, Moritz (Intern) 2024-08-28 13:09:19 +02:00
parent 659683bd39
commit 6422737cf3
1 changed files with 0 additions and 9 deletions

View File

@ -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 {