[project @ 1999-09-06 11:53:18 by simonmar]
authorsimonmar <unknown>
Mon, 6 Sep 1999 11:53:18 +0000 (11:53 +0000)
committersimonmar <unknown>
Mon, 6 Sep 1999 11:53:18 +0000 (11:53 +0000)
fix line number discrepancy w/ string gaps.

ghc/compiler/parser/Lex.lhs

index 4ee690b..ba2ed1f 100644 (file)
@@ -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#