diff options
author | Alex Merry <dev@randomguy3.me.uk> | 2013-03-23 18:24:32 +0000 |
---|---|---|
committer | Alex Merry <dev@randomguy3.me.uk> | 2013-03-23 18:25:04 +0000 |
commit | 228f49a7ccb33e9a5c274f3e9102dceb1aaa0e28 (patch) | |
tree | 12ead4cd756a3a7dff13b6792c2f274b0eff3f90 /tikzit/src | |
parent | 194806b17d3309202ddaf7a981ec02581984f033 (diff) |
Store parsed graph properties
It appears I broke this when rewriting the parser.
Diffstat (limited to 'tikzit/src')
-rw-r--r-- | tikzit/src/common/tikzparser.ym | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tikzit/src/common/tikzparser.ym b/tikzit/src/common/tikzparser.ym index cf9205c..85a0fe0 100644 --- a/tikzit/src/common/tikzparser.ym +++ b/tikzit/src/common/tikzparser.ym @@ -107,7 +107,12 @@ void yyerror(YYLTYPE *yylloc, TikzGraphAssembler *assembler, const char *str) { %% -tikzpicture: "\\begin{tikzpicture}" optproperties tikzcmds "\\end{tikzpicture}"; +tikzpicture: "\\begin{tikzpicture}" optproperties tikzcmds "\\end{tikzpicture}" + { + if ($2) { + [[assembler graph] setData:$2]; + } + }; tikzcmds: tikzcmds tikzcmd | ; tikzcmd: node | edge | boundingbox | ignore; |