From: Ian Lynagh Date: Wed, 25 Nov 2009 23:19:01 +0000 (+0000) Subject: Fix a bug in alternative layout rule X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=a6a4959cd94716d1e2e6624f370eb9c1bdd96ecc Fix a bug in alternative layout rule --- diff --git a/compiler/parser/Lexer.x b/compiler/parser/Lexer.x index 1bb8a63..09b58dd 100644 --- a/compiler/parser/Lexer.x +++ b/compiler/parser/Lexer.x @@ -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)