summaryrefslogtreecommitdiff
path: root/source/Syntax/Token.hs
diff options
context:
space:
mode:
Diffstat (limited to 'source/Syntax/Token.hs')
-rw-r--r--source/Syntax/Token.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Syntax/Token.hs b/source/Syntax/Token.hs
index 7c8606c..7a9a42d 100644
--- a/source/Syntax/Token.hs
+++ b/source/Syntax/Token.hs
@@ -431,7 +431,7 @@ lexeme p = do
pure (Located start t)
space :: Lexer ()
-space = void (Char.char ' ' <|> Char.char '\n')
+space = void (Char.char ' ' <|> Char.char '\n' <|> Char.char '\r')
<|> void (Char.string "\\ " <|> Char.string "\\\\" <|> Char.string "\\!" <|> Char.string "\\," <|> Char.string "\\:" <|> Char.string "\\;" <|> Char.string "\\;")
whitespace :: Lexer ()