Teach the alternative layout rule about mdo and rec
authorIan Lynagh <igloo@earth.li>
Sat, 16 Jan 2010 21:55:45 +0000 (21:55 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 16 Jan 2010 21:55:45 +0000 (21:55 +0000)
compiler/parser/Lexer.x

index d350f11..51aa2f3 100644 (file)
@@ -1954,6 +1954,8 @@ lexTokenAlr = do mPending <- popPendingImplicitToken
                      ITlet   -> setAlrExpectingOCurly (Just ALRLayoutLet)
                      ITof    -> setAlrExpectingOCurly (Just ALRLayoutOf)
                      ITdo    -> setAlrExpectingOCurly (Just ALRLayoutDo)
                      ITlet   -> setAlrExpectingOCurly (Just ALRLayoutLet)
                      ITof    -> setAlrExpectingOCurly (Just ALRLayoutOf)
                      ITdo    -> setAlrExpectingOCurly (Just ALRLayoutDo)
+                     ITmdo   -> setAlrExpectingOCurly (Just ALRLayoutDo)
+                     ITrec   -> setAlrExpectingOCurly (Just ALRLayoutDo)
                      _       -> return ()
                  return t
 
                      _       -> return ()
                  return t