From 3b32c208809333b15c338ca9b0c7bef45895acb7 Mon Sep 17 00:00:00 2001 From: "Stephen C. North" Date: Mon, 29 Jul 2013 11:21:15 -0400 Subject: [PATCH] Fix error in parsing edges with subgraph as an endpoint. --- lib/cgraph/grammar.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cgraph/grammar.y b/lib/cgraph/grammar.y index d8cb343c6..6e602b695 100644 --- a/lib/cgraph/grammar.y +++ b/lib/cgraph/grammar.y @@ -126,7 +126,7 @@ compound : simple rcompound optattr simple : nodelist | subgraph ; -rcompound : T_edgeop {getedgeitems(1);} simple rcompound {getedgeitems(2); $$ = 1;} +rcompound : T_edgeop {getedgeitems(1);} simple rcompound {if ($4) getedgeitems(2); $$ = 1;} | /* empty */ {$$ = 0;} ; -- 2.40.0