imapclient
imapclient copied to clipboard
Improve parse error reporting
Originally reported by: Menno Smits (Bitbucket: mjs0)
When a parse error occurs, the characters preceding the token causing the error are printed. These characters are reconstructed from recent tokens. It might be better to have the lexer keep a list of the actual recent characters seen (deque?) and use that for error reporting.
- Bitbucket: https://bitbucket.org/mjs0/imapclient/issue/60