Now that an 'in' it always considered to be *after* a symbol,
we want to apply 'in' token to the current top-of-stack, not to the
'next' frame.
Signed-off-by: NeilBrown <neil@brown.name>
parser_trace(trace, &p, &next, tk, states, non_term, config->known_count);
if (next.sym == TK_in) {
- next.indents = 1;
- next.since_newline = 0;
+ tos->indents += 1;
+ tos->since_newline = 0;
+ tos->since_indent = 0;
+ if (!states[tos->state].starts_line)
+ tos->newline_permitted = 0;
free(tk);
tk = NULL;
parser_trace_action(trace, "Record");