- /* Shifts are blue, gotos are red. */
- edge.color = SHIFT_IS_SHIFT(shiftp, i) ? blue : red;
- edge.label = tags[symbol];
+ /* Shifts are blue, gotos are green, and error is red. */
+ if (SHIFT_IS_ERROR (shiftp, i))
+ edge.color = red;
+ else
+ edge.color = SHIFT_IS_SHIFT(shiftp, i) ? blue : green;
+ edge.label = escape (symbols[symbol]->tag);