mirror of
https://github.com/mrkkrp/megaparsec.git
synced 2024-12-21 07:11:39 +03:00
b8990ab042
This fixes a regression introduced by: Sun Feb 20 18:24:22 EET 2011 Roman Cheplyaka <roma@ro-che.info> * Choose the longest match when merging error messages The source of the regression is that parsec sometimes generates dummy (aka "unknown") error messages when no actual error has occurred. So, when merging errors, before simply looking at the positions we should check if one of them is unknown and just ignore it. Reported by Matthias Hörmann. |
||
---|---|---|
.. | ||
ByteString | ||
Text | ||
ByteString.hs | ||
Char.hs | ||
Combinator.hs | ||
Error.hs | ||
Expr.hs | ||
Language.hs | ||
Perm.hs | ||
Pos.hs | ||
Prim.hs | ||
String.hs | ||
Text.hs | ||
Token.hs |