From f6af3fa05093ff703d587bb2b11c4ad008dc9ca5 Mon Sep 17 00:00:00 2001 From: panne Date: Mon, 8 Sep 2003 14:46:37 +0000 Subject: [PATCH] [project @ 2003-09-08 14:46:37 by panne] *sigh* Handle lines like (note the blank!): {-# LINE 1 "" #-} --- ghc/compiler/parser/Lexer.x | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghc/compiler/parser/Lexer.x b/ghc/compiler/parser/Lexer.x index 316cb10..344f0c4 100644 --- a/ghc/compiler/parser/Lexer.x +++ b/ghc/compiler/parser/Lexer.x @@ -157,7 +157,7 @@ $white_no_nl+ ; -- Haskell-style line pragmas, of the form -- {-# LINE "" #-} $digit+ { set_line line_prag2a } - \" $graphic* \" { set_file line_prag2b } + \" [$graphic \ ]* \" { set_file line_prag2b } "#-}" { pop } <0,glaexts> { -- 1.7.10.4