Fix a bug in alternative layout rule
authorIan Lynagh <igloo@earth.li>
Wed, 25 Nov 2009 23:19:01 +0000 (23:19 +0000)
committerIan Lynagh <igloo@earth.li>
Wed, 25 Nov 2009 23:19:01 +0000 (23:19 +0000)
compiler/parser/Lexer.x

index 1bb8a63..09b58dd 100644 (file)
@@ -2018,6 +2018,7 @@ alternativeLayoutRuleToken t
                     return (L thisLoc ITsemi)
               | newLine && thisCol < col ->
                  do setALRContext ls
+                    setNextToken t
                     -- Note that we use lastLoc, as we may need to close
                     -- more layouts, or give a semicolon
                     return (L lastLoc ITccurly)