If the whole line is a single symbol, then it isn't appropriate
for a NEWLINE to force a reduce (it may be for an OUT, but as the
NEWLINE shifts (the OUT doesn't) we don't need to push so hard).
Signed-off-by: NeilBrown <neil@brown.name>
parser_trace_action(trace, "Discard");
continue;
}
- if (states[tos->state].reduce_size >= 0 &&
+ if (tos->since_newline > 1 &&
+ states[tos->state].reduce_size >= 0 &&
states[tos->state].reduce_size <= tos->since_newline)
goto force_reduce;
}