From b31704494636c71894ec8850c570056d0b8b9bac Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Sat, 23 Mar 2013 23:24:06 +0000 Subject: Fixes to the parser error-reporting code --- tikzit/src/common/tikzparser.ym | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tikzit/src/common/tikzparser.ym') diff --git a/tikzit/src/common/tikzparser.ym b/tikzit/src/common/tikzparser.ym index 85a0fe0..d0ced92 100644 --- a/tikzit/src/common/tikzparser.ym +++ b/tikzit/src/common/tikzparser.ym @@ -62,6 +62,10 @@ void yyerror(YYLTYPE *yylloc, TikzGraphAssembler *assembler, const char *str) { } %} +%initial-action { + yylloc.first_column = yylloc.last_column = 0; +}; + %token BEGIN_TIKZPICTURE_CMD "\\begin{tikzpicture}" %token END_TIKZPICTURE_CMD "\\end{tikzpicture}" -- cgit v1.2.3