Fix a couple crlf issues (#496)

This commit is contained in:
JT
2021-12-15 07:17:02 +11:00
committed by GitHub
parent 1cbb785969
commit e9525627e6
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ pub fn lex_item(
break;
}
in_comment = true;
} else if c == b'\n' {
} else if c == b'\n' || c == b'\r' {
in_comment = false;
if is_item_terminator(&block_level, c, additional_whitespace, special_tokens) {
break;