From 0addcfad48f5e138c960dbc716772c04535c9e30 Mon Sep 17 00:00:00 2001 From: limuy Date: Wed, 1 May 2024 13:08:20 +0800 Subject: [PATCH] fix windows line --- src/compiler/token.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/token.rs b/src/compiler/token.rs index 7b16b64c..32090bbe 100644 --- a/src/compiler/token.rs +++ b/src/compiler/token.rs @@ -848,7 +848,7 @@ impl TokenLex { '\0' => { return Ok(Token::new(TokenType::EndOfFile, None)); } - '\t' | ' ' => { + '\t' | ' ' | '\r' => { return self.next_token(); } '\n' => {