summaryrefslogtreecommitdiff
path: root/tikzit
diff options
context:
space:
mode:
authorAlex Merry <dev@randomguy3.me.uk>2013-07-29 16:12:32 +0100
committerAlex Merry <dev@randomguy3.me.uk>2013-07-29 16:12:32 +0100
commitae3a3f2fd6ef417329ad2f32ddb9ed4f0d851553 (patch)
tree0d663f18e9032cd298e50a7c5fb0e4ed84cfbb3f /tikzit
parentff11f7e8631c04d603df1440b635f1e1b340bb4c (diff)
Do not reverse the order of the properties when parsing
Diffstat (limited to 'tikzit')
-rw-r--r--tikzit/src/common/tikzparser.ym12
1 files changed, 6 insertions, 6 deletions
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: