Handle new lines on windows

This commit is contained in:
PaddiM8 2021-09-04 12:14:49 +02:00
parent 581fd8daa1
commit 3e9230933e

View File

@ -185,7 +185,7 @@ impl<'a> Lexer<'a> {
break;
};
if !c.is_digit(10) && c != '.' && !c.is_whitespace() || c == '\n' {
if !c.is_digit(10) && c != '.' && !c.is_whitespace() || c == '\n' || c == '\r' {
break;
}