projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de49ea3
)
[project @ 2004-03-08 11:20:53 by simonmar]
author
simonmar
<unknown>
Mon, 8 Mar 2004 11:20:53 +0000
(11:20 +0000)
committer
simonmar
<unknown>
Mon, 8 Mar 2004 11:20:53 +0000
(11:20 +0000)
Ignore #! lines for scripts.
ghc/compiler/parser/Lexer.x
patch
|
blob
|
history
diff --git
a/ghc/compiler/parser/Lexer.x
b/ghc/compiler/parser/Lexer.x
index
2d01a18
..
c90e934
100644
(file)
--- 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 }
}