mirror of
https://github.com/PaddiM8/kalker.git
synced 2024-12-14 10:30:43 +01:00
Handle new lines on windows
This commit is contained in:
parent
581fd8daa1
commit
3e9230933e
@ -185,7 +185,7 @@ impl<'a> Lexer<'a> {
|
|||||||
break;
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user