lib/graphviz/dot.treetop in ruby-graphviz-0.9.9 vs lib/graphviz/dot.treetop in ruby-graphviz-0.9.10
- old
+ new
@@ -42,10 +42,18 @@
rule undirect_edge
space node_one:string blank "--" blank node_two:string blank other_nodes:("--" blank next_node:string blank)* options:options? separator <GraphViz::Parser::Edge>
end
rule subgraph
+ named_subgraph / anonymous_subgraph
+ end
+
+ rule named_subgraph
space "subgraph" blank name:string space cluster:cluster space <GraphViz::Parser::Subgraph>
+ end
+
+ rule anonymous_subgraph
+ space "subgraph" space cluster:cluster space <GraphViz::Parser::AnonymousSubgraph>
end
rule options
"[" space (name blank "=" blank string comma space)* name blank "=" blank string space "]" <GraphViz::Parser::Options>
end
\ No newline at end of file