diff options
author | simonmar <unknown> | 2004-03-08 11:20:53 +0000 |
---|---|---|
committer | simonmar <unknown> | 2004-03-08 11:20:53 +0000 |
commit | 8870be26eb28262a587a1b8a15c798c31e75135c (patch) | |
tree | 4e050d5df2f5ec358057e3c021e24a5f0cc6c4d8 | |
parent | de49ea3df4f59226585f9903cde457050c4691b6 (diff) | |
download | haskell-8870be26eb28262a587a1b8a15c798c31e75135c.tar.gz |
[project @ 2004-03-08 11:20:53 by simonmar]
Ignore #! lines for scripts.
-rw-r--r-- | ghc/compiler/parser/Lexer.x | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ghc/compiler/parser/Lexer.x b/ghc/compiler/parser/Lexer.x index 2d01a18967..c90e934a30 100644 --- a/ghc/compiler/parser/Lexer.x +++ b/ghc/compiler/parser/Lexer.x @@ -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 } } |