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:
13cf295
)
[project @ 1999-09-06 11:53:18 by simonmar]
author
simonmar
<unknown>
Mon, 6 Sep 1999 11:53:18 +0000
(11:53 +0000)
committer
simonmar
<unknown>
Mon, 6 Sep 1999 11:53:18 +0000
(11:53 +0000)
fix line number discrepancy w/ string gaps.
ghc/compiler/parser/Lex.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/parser/Lex.lhs
b/ghc/compiler/parser/Lex.lhs
index
4ee690b
..
ba2ed1f
100644
(file)
--- a/
ghc/compiler/parser/Lex.lhs
+++ b/
ghc/compiler/parser/Lex.lhs
@@
-627,9
+627,9
@@
lex_string cont glaexts s buf
-- ignore \& in a string, deal with string gaps
'\\'# | next_ch `eqChar#` '&'#
- -> lex_string cont glaexts s (setCurrentPos# buf 2#)
+ -> lex_string cont glaexts s buf'
| is_space next_ch
- -> lex_stringgap cont glaexts s buf'
+ -> lex_stringgap cont glaexts s (incLexeme buf)
where next_ch = lookAhead# buf 1#
buf' = setCurrentPos# buf 2#