These was a problem with my reasoning about parsing indents.
Resolving it properly will take a bit of work, but this little 'fix'
handles an easy case for now.
Signed-off-by: NeilBrown <neil@brown.name>
if (p.next.sym == TK_out) {
if (p.stack[p.tos-1].indents > p.stack[p.tos-1].starts_indented ||
(p.stack[p.tos-1].indents == 1 &&
- states[p.next.state].reduce_size > 1)) {
+ states[p.next.state].reduce_size != 1)) {
p.stack[p.tos-1].indents -= 1;
if (p.stack[p.tos-1].indents == p.stack[p.tos-1].starts_indented) {
// no internal indent any more, reassess 'newline_permitted'