parser: return a proper JSON reply on parse errors

This commit is contained in:
Michael Stapelberg
2010-11-14 01:45:05 +01:00
parent 7c6f2dbfc6
commit a415d56048
2 changed files with 8 additions and 1 deletions

View File

@ -35,6 +35,8 @@ struct context {
char *line_copy;
const char *filename;
const char *compact_error;
/* These are the same as in YYLTYPE */
int first_column;
int last_column;