[project @ 2003-09-08 14:46:37 by panne]
authorpanne <unknown>
Mon, 8 Sep 2003 14:46:37 +0000 (14:46 +0000)
committerpanne <unknown>
Mon, 8 Sep 2003 14:46:37 +0000 (14:46 +0000)
*sigh* Handle lines like (note the blank!):

{-# LINE 1 "<command line>" #-}

ghc/compiler/parser/Lexer.x

index 316cb10..344f0c4 100644 (file)
@@ -157,7 +157,7 @@ $white_no_nl+                               ;
 -- Haskell-style line pragmas, of the form
 --    {-# LINE <line> "<file>" #-}
 <line_prag2> $digit+                   { set_line line_prag2a }
-<line_prag2a> \" $graphic* \"          { set_file line_prag2b }
+<line_prag2a> \" [$graphic \ ]* \"     { set_file line_prag2b }
 <line_prag2b> "#-}"                    { pop }
 
 <0,glaexts> {