From b76214910fb290fa711be2a156079717f477a068 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Mon, 4 Feb 2013 18:35:27 +0000 Subject: Fix parsing of keywords in property names and values Keywords like "rectangle" and "at" were not allowed unquoted by the parser, but would not be quoted by the generator. Fixes: #10 --- tikzit/src/common/tikzparser.ym | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tikzit/src/common/tikzparser.ym b/tikzit/src/common/tikzparser.ym index 26f0e0d..cdbdb88 100644 --- a/tikzit/src/common/tikzparser.ym +++ b/tikzit/src/common/tikzparser.ym @@ -119,7 +119,12 @@ propsyms: propsym: LWORD { $$ = $1; } - | number { $$ = $1; }; + | number { $$ = $1; } + | TO { $$ = @"to"; } + | NODE { $$ = @"node"; } + | RECTANGLE { $$ = @"rectangle"; } + | AT { $$ = @"at"; } + | FULLSTOP { $$ = @"."; }; nodecmd : NODE { [[TikzGraphAssembler currentAssembler] prepareNode]; }; -- cgit v1.2.3