summaryrefslogtreecommitdiff
path: root/tikzit
diff options
context:
space:
mode:
authorAlex Merry <dev@randomguy3.me.uk>2013-07-29 16:11:59 +0100
committerAlex Merry <dev@randomguy3.me.uk>2013-07-29 16:11:59 +0100
commitff11f7e8631c04d603df1440b635f1e1b340bb4c (patch)
treee22ff74acf0ccdf29d77d3b2b29835ffd1f0bf2e /tikzit
parentd08bb9d43acacedb5226feff5752a072e757288d (diff)
Allow empty square brackets for properties list
Diffstat (limited to 'tikzit')
-rw-r--r--tikzit/src/common/tikzparser.ym4
1 files changed, 3 insertions, 1 deletions
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