Fixed new lines being parsed as numbers

This commit is contained in:
bakk 2021-05-30 19:11:25 +02:00
parent e824918d57
commit 2573ae16e2

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;
}