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:
a629ff5
)
[project @ 2003-09-08 14:46:37 by panne]
author
panne
<unknown>
Mon, 8 Sep 2003 14:46:37 +0000
(14:46 +0000)
committer
panne
<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
patch
|
blob
|
history
diff --git
a/ghc/compiler/parser/Lexer.x
b/ghc/compiler/parser/Lexer.x
index
316cb10
..
344f0c4
100644
(file)
--- a/
ghc/compiler/parser/Lexer.x
+++ b/
ghc/compiler/parser/Lexer.x
@@
-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> {