[project @ 2004-03-08 11:20:53 by simonmar]
authorsimonmar <unknown>
Mon, 8 Mar 2004 11:20:53 +0000 (11:20 +0000)
committersimonmar <unknown>
Mon, 8 Mar 2004 11:20:53 +0000 (11:20 +0000)
Ignore #! lines for scripts.

ghc/compiler/parser/Lexer.x

index 2d01a18..c90e934 100644 (file)
@@ -124,6 +124,7 @@ $white_no_nl+                               ;
   \n                                   ;
   ^\# (line)?                          { begin line_prag1 }
   ^\# pragma .* \n                     ; -- GCC 3.3 CPP generated, apparently
+  ^\# \! .* \n                         ; -- #!, for scripts
   ()                                   { do_bol }
 }