From a6a4959cd94716d1e2e6624f370eb9c1bdd96ecc Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Wed, 25 Nov 2009 23:19:01 +0000 Subject: [PATCH] Fix a bug in alternative layout rule --- compiler/parser/Lexer.x | 1 + 1 file changed, 1 insertion(+) 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) -- 1.7.10.4