blob: a5e0ab6ae48ece50b2f6afa7e1311769f3f373aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
From 8de27c4c7c9a42a8224e3dfc865b25b184ce1399 Mon Sep 17 00:00:00 2001
From: Alex Merry <dev@randomguy3.me.uk>
Date: Mon, 29 Jul 2013 16:12:32 +0100
Subject: [PATCH 2/4] Do not reverse the order of the properties when parsing
---
tikzit/src/common/tikzparser.ym | 12 ++++++------
1 file 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:
--
2.11.0
|