From 84df4540333450f9520c58b847bf5c5a54435321 Mon Sep 17 00:00:00 2001 From: Alex Merry 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