blob: b37b9d2d84e4bc6dc72bc59e68c43ff80309004a (
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
|
From 84df4540333450f9520c58b847bf5c5a54435321 Mon Sep 17 00:00:00 2001
From: Alex Merry <dev@randomguy3.me.uk>
Date: Mon, 29 Jul 2013 16:11:59 +0100
Subject: [PATCH 1/4] Allow empty square brackets for properties list
---
tikzit/src/common/tikzparser.ym | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tikzit/src/common/tikzparser.ym b/tikzit/src/common/tikzparser.ym
index 794b06d..5c49ed9 100644
--- a/tikzit/src/common/tikzparser.ym
+++ b/tikzit/src/common/tikzparser.ym
@@ -123,7 +123,9 @@ tikzcmd: node | edge | boundingbox | ignore;
ignore: "\\begin{pgfonlayer}" DELIMITEDSTRING | "\\end{pgfonlayer}";
optproperties:
- "[" properties "]"
+ "[" "]"
+ { $$ = nil; }
+ | "[" properties "]"
{ $$ = $2; }
| { $$ = nil; };
properties: property extraproperties
--
2.11.0
|