Format Num, Str and fix off-by-one bug

This commit is contained in:
Ayaz Hafiz 2022-05-18 15:26:21 -04:00
parent 521f1e2c6c
commit e293a8d4fa
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
3 changed files with 14 additions and 53 deletions

View file

@ -388,7 +388,6 @@ fn eat_line_comment<'a>(
}
b'\n' => {
state = state.advance_newline();
index += 1;
multiline = true;
comments_and_newlines.push(CommentOrNewline::Newline);
}
@ -424,7 +423,7 @@ fn eat_line_comment<'a>(
};
}
_ => false,
Some(_) => false,
}
} else {
false