mirror of
https://github.com/PaddiM8/kalker.git
synced 2025-01-19 03:38:13 +01:00
Fixed new lines being parsed as numbers
This commit is contained in:
parent
e824918d57
commit
2573ae16e2
@ -152,7 +152,7 @@ impl<'a> Lexer<'a> {
|
|||||||
break;
|
break;
|
||||||
};
|
};
|
||||||
|
|
||||||
if !c.is_digit(10) && c != '.' && !c.is_whitespace() {
|
if !c.is_digit(10) && c != '.' && !c.is_whitespace() || c == '\n' {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user