scanner: more verbose parser error messages
authorStefan Kost <ensonic@users.sf.net>
Sat, 5 Dec 2009 21:00:32 +0000 (23:00 +0200)
committerStefan Kost <ensonic@users.sf.net>
Sat, 5 Dec 2009 21:00:32 +0000 (23:00 +0200)
commit58de797638c54954d56862b58c4ec78a57485131
treefa75dc7229b1a1101fbe34e07753458637c70897
parent531442faea054507f7d50e36464ea1737e2423ac
scanner: more verbose parser error messages

Keep track of the current line (the first 2000 chars of it) and include that in
syntax error messages. Also print that failed token in the error message.
giscanner/scannerlexer.l
giscanner/scannerparser.y