mirror of
https://github.com/PaddiM8/kalker.git
synced 2024-12-13 01:50:41 +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;
|
||||
};
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user