summaryrefslogtreecommitdiff
path: root/tikzit/src/common/tikzparser.ym
diff options
context:
space:
mode:
authorAlex Merry <dev@randomguy3.me.uk>2013-03-23 23:24:06 +0000
committerAlex Merry <dev@randomguy3.me.uk>2013-03-23 23:24:06 +0000
commitb31704494636c71894ec8850c570056d0b8b9bac (patch)
treeec2d10c95e88555c07529e260de338e82ea55136 /tikzit/src/common/tikzparser.ym
parent5f4cb99c6b358e2e554e516eaf0ecc6ea6f8690d (diff)
Fixes to the parser error-reporting code
Diffstat (limited to 'tikzit/src/common/tikzparser.ym')
-rw-r--r--tikzit/src/common/tikzparser.ym4
1 files changed, 4 insertions, 0 deletions
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}"