projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
61b0395
)
[project @ 2006-01-10 14:39:01 by simonmar]
author
simonmar
<unknown>
Tue, 10 Jan 2006 14:39:01 +0000
(14:39 +0000)
committer
simonmar
<unknown>
Tue, 10 Jan 2006 14:39:01 +0000
(14:39 +0000)
Add a TODO
ghc/compiler/parser/Lexer.x
patch
|
blob
|
history
diff --git
a/ghc/compiler/parser/Lexer.x
b/ghc/compiler/parser/Lexer.x
index
be8dadd
..
84e5a1a
100644
(file)
--- a/
ghc/compiler/parser/Lexer.x
+++ b/
ghc/compiler/parser/Lexer.x
@@
-1381,6
+1381,10
@@
lexToken = do
span `seq` setLastToken span bytes
t span buf bytes
+-- ToDo: Alex reports the buffer at the start of the erroneous lexeme,
+-- but it would be more informative to report the location where the
+-- error was actually discovered, especially if this is a decoding
+-- error.
reportLexError loc1 loc2 buf str =
let
c = fst (nextChar buf)