From e4a16824dc9fa0d85232d673c9925c226175ea85 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Sun, 9 Mar 2014 17:23:00 +1100 Subject: Fixed whitespace handling when removing comments --- Unlambda/Parser.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Unlambda/Parser.hs b/Unlambda/Parser.hs index 18012e7..d5b8889 100644 --- a/Unlambda/Parser.hs +++ b/Unlambda/Parser.hs @@ -50,7 +50,7 @@ removeComments = uline `sepEndBy` eol >>= (return . concat) uline = do - l <- many builtin + l <- many (builtin <|> (oneOf " \t" >>= return . (:[]))) optional (char '#' >> many (noneOf "\r\n")) return . concat $ l -- cgit