From ae3a3f2fd6ef417329ad2f32ddb9ed4f0d851553 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Mon, 29 Jul 2013 16:12:32 +0100 Subject: Do not reverse the order of the properties when parsing --- tikzit/src/common/tikzparser.ym | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tikzit') diff --git a/tikzit/src/common/tikzparser.ym b/tikzit/src/common/tikzparser.ym index 5c49ed9..98d25e4 100644 --- a/tikzit/src/common/tikzparser.ym +++ b/tikzit/src/common/tikzparser.ym @@ -128,16 +128,16 @@ optproperties: | "[" properties "]" { $$ = $2; } | { $$ = nil; }; -properties: property extraproperties +properties: extraproperties property { - [$2 addObject:$1]; - $$ = $2; + [$1 addObject:$2]; + $$ = $1; }; extraproperties: - "," property extraproperties + extraproperties property "," { - [$3 addObject:$2]; - $$ = $3; + [$1 addObject:$2]; + $$ = $1; } | { $$ = [GraphElementData data]; }; property: -- cgit v1.2.3