]> granicus.if.org Git - graphviz/commitdiff
cgraph: remove now unnecessary 'attritem' indirection in the grammar
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 17 Dec 2022 18:58:05 +0000 (10:58 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 17 Dec 2022 18:59:38 +0000 (10:59 -0800)
lib/cgraph/grammar.y

index 8aedcc1581bfb9f7e7929d9712d849313972d7eb..9e1b8be73ef258d13ce0646fc194f0167c748a59 100644 (file)
@@ -165,11 +165,9 @@ attrlist   : optattr '[' optattrdefs ']' ;
 optattrdefs    : optattrdefs attrdefs 
                        | /* empty */ ;
 
-attrdefs       :  attritem optseparator
+attrdefs       :  attrassignment optseparator
                        ;
 
-attritem       : attrassignment;
-
 attrassignment :  atom '=' atom {appendattr($1,$3);}
                        ;