summaryrefslogtreecommitdiff
path: root/tikzit/src/common/tikzparser.ym
diff options
context:
space:
mode:
Diffstat (limited to 'tikzit/src/common/tikzparser.ym')
-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