summaryrefslogtreecommitdiff
path: root/debian/patches/0001-Allow-empty-square-brackets-for-properties-list.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0001-Allow-empty-square-brackets-for-properties-list.patch')
-rw-r--r--debian/patches/0001-Allow-empty-square-brackets-for-properties-list.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/patches/0001-Allow-empty-square-brackets-for-properties-list.patch b/debian/patches/0001-Allow-empty-square-brackets-for-properties-list.patch
new file mode 100644
index 0000000..b37b9d2
--- /dev/null
+++ b/debian/patches/0001-Allow-empty-square-brackets-for-properties-list.patch
@@ -0,0 +1,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
+