diff options
author | Alex Merry <dev@randomguy3.me.uk> | 2013-07-29 16:11:59 +0100 |
---|---|---|
committer | Alex Merry <dev@randomguy3.me.uk> | 2013-07-29 16:11:59 +0100 |
commit | ff11f7e8631c04d603df1440b635f1e1b340bb4c (patch) | |
tree | e22ff74acf0ccdf29d77d3b2b29835ffd1f0bf2e | |
parent | d08bb9d43acacedb5226feff5752a072e757288d (diff) |
Allow empty square brackets for properties list
-rw-r--r-- | tikzit/src/common/tikzparser.ym | 4 |
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 |