Teach the alternative layout rule about $( ... )
authorIan Lynagh <igloo@earth.li>
Sat, 16 Jan 2010 21:39:41 +0000 (21:39 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 16 Jan 2010 21:39:41 +0000 (21:39 +0000)
It thought the ) needed to close something, but the $( hadn't
opened anything.

compiler/parser/Lexer.x

index b3502b8..d350f11 100644 (file)
@@ -2065,14 +2065,15 @@ alternativeLayoutRuleToken t
              (_, _, _) -> return t
 
 isALRopen :: Token -> Bool
              (_, _, _) -> return t
 
 isALRopen :: Token -> Bool
-isALRopen ITcase   = True
-isALRopen ITif     = True
-isALRopen IToparen = True
-isALRopen ITobrack = True
-isALRopen ITocurly = True
+isALRopen ITcase        = True
+isALRopen ITif          = True
+isALRopen IToparen      = True
+isALRopen ITobrack      = True
+isALRopen ITocurly      = True
 -- GHC Extensions:
 -- GHC Extensions:
-isALRopen IToubxparen = True
-isALRopen _        = False
+isALRopen IToubxparen   = True
+isALRopen ITparenEscape = True
+isALRopen _             = False
 
 isALRclose :: Token -> Bool
 isALRclose ITof     = True
 
 isALRclose :: Token -> Bool
 isALRclose ITof     = True