mirror of
https://github.com/PaddiM8/kalker.git
synced 2024-12-13 01:50:41 +01:00
Fixed new lines being parsed as numbers
This commit is contained in:
parent
026f048414
commit
a679e10bfa
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user