[project @ 2003-09-08 13:31:35 by panne]
authorpanne <unknown>
Mon, 8 Sep 2003 13:31:35 +0000 (13:31 +0000)
committerpanne <unknown>
Mon, 8 Sep 2003 13:31:35 +0000 (13:31 +0000)
Handle lines like (note the blank!):

# 1 "<command line>"

ghc/compiler/parser/Lexer.x

index 922860e..0f2e23e 100644 (file)
@@ -151,7 +151,7 @@ $white_no_nl+                               ;
 -- single-line line pragmas, of the form
 --    # <line> "<file>" <extra-stuff> \n
 <line_prag1> $digit+                   { set_line line_prag1a }
-<line_prag1a> \" $graphic* \"          { set_file line_prag1b }
+<line_prag1a> \" [$graphic \ ]* \"     { set_file line_prag1b }
 <line_prag1b> .*                       { pop }
 
 -- Haskell-style line pragmas, of the form