X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fparser%2FLexer.x;h=7594079ff1d0f422fdb85e0a5f5012f54a7d93e9;hp=43ddf7c4c55e9f483c66733d80795a7a86cc916d;hb=59300a7161f44b3a2afe381a6ccd914043a32c4f;hpb=d8b99b7e9b2ce9fd8ba97fa10657082ceac09c59 diff --git a/compiler/parser/Lexer.x b/compiler/parser/Lexer.x index 43ddf7c..7594079 100644 --- a/compiler/parser/Lexer.x +++ b/compiler/parser/Lexer.x @@ -2002,9 +2002,9 @@ alternativeLayoutRuleToken t return (L thisLoc ITocurly) | otherwise -> do setAlrExpectingOCurly Nothing - setPendingImplicitTokens [L thisLoc ITccurly] + setPendingImplicitTokens [L lastLoc ITccurly] setNextToken t - return (L thisLoc ITocurly) + return (L lastLoc ITocurly) (_, _, Just expectingOCurly) -> do setAlrExpectingOCurly Nothing setALRContext (ALRLayout expectingOCurly thisCol : context)