X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/f16b08196c780556cbf50691e2944960aebc46f6..5339158d012074343af6d44e52e38b7456f6e386:/src/print_graph.c diff --git a/src/print_graph.c b/src/print_graph.c index 2db68151..9d7da18a 100644 --- a/src/print_graph.c +++ b/src/print_graph.c @@ -82,7 +82,8 @@ print_core (struct obstack *oout, state *s) obstack_fgrow1 (oout, " %s", symbols[*sp]->tag); /* Experimental feature: display the lookahead tokens. */ - if (report_flag & report_lookahead_tokens) + if (report_flag & report_lookahead_tokens + && item_number_is_rule_number (*sp1)) { /* Find the reduction we are handling. */ reductions *reds = s->reductions;