Fixed new lines being parsed as numbers

This commit is contained in:
bakk 2021-05-30 19:11:25 +02:00
parent 026f048414
commit a679e10bfa

View File

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