Commit 987cb685 authored by Ian Lynagh's avatar Ian Lynagh

Teach the alternative layout rule about $( ... )

It thought the ) needed to close something, but the $( hadn't
opened anything.
parent 2f41cb69
......@@ -2065,14 +2065,15 @@ alternativeLayoutRuleToken t
(_, _, _) -> 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:
isALRopen IToubxparen = True
isALRopen _ = False
isALRopen IToubxparen = True
isALRopen ITparenEscape = True
isALRopen _ = False
isALRclose :: Token -> Bool
isALRclose ITof = True
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment