From e5a203468f55fe3523b2fa1866bd9c0c44556671 Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 6 Jul 1999 15:21:57 +0000 Subject: [PATCH] [project @ 1999-07-06 15:21:57 by simonmar] only pop explicit layout contexts with '}'. --- ghc/compiler/parser/Lex.lhs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghc/compiler/parser/Lex.lhs b/ghc/compiler/parser/Lex.lhs index efcda1b..72b31c5 100644 --- a/ghc/compiler/parser/Lex.lhs +++ b/ghc/compiler/parser/Lex.lhs @@ -522,8 +522,8 @@ lexToken cont glaexts buf = '}'# -> \ s@PState{context = ctx} -> case ctx of - (_:ctx') -> cont ITccurly (incLexeme buf) s{context=ctx'} - _ -> lexError "too many '}'s" buf s + (NoLayout:ctx') -> cont ITccurly (incLexeme buf) s{context=ctx'} + _ -> lexError "too many '}'s" buf s '#'# -> case lookAhead# buf 1# of ')'# | flag glaexts -> cont ITcubxparen (setCurrentPos# buf 2#) -- 1.7.10.4