From: panne Date: Mon, 8 Sep 2003 14:46:37 +0000 (+0000) Subject: [project @ 2003-09-08 14:46:37 by panne] X-Git-Tag: Approx_11550_changesets_converted~485 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;ds=sidebyside;h=f6af3fa05093ff703d587bb2b11c4ad008dc9ca5;p=ghc-hetmet.git [project @ 2003-09-08 14:46:37 by panne] *sigh* Handle lines like (note the blank!): {-# LINE 1 "" #-} --- 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> {