summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/parse.y b/parse.y
index 1de67b58f6..a6c869f125 100644
--- a/parse.y
+++ b/parse.y
@@ -384,7 +384,7 @@ stmts : none
}
| stmts terms stmt
{
- $$ = block_append($1, newline_node($3));
+ $$ = block_append($1, $3);
}
| error stmt
{
@@ -4518,7 +4518,7 @@ block_append(head, tail)
parser_warning(h, "unused literal ignored");
return tail;
default:
- end = NEW_BLOCK(head);
+ h = end = NEW_BLOCK(head);
end->nd_end = end;
fixpos(end, head);
head = end;
@@ -4554,7 +4554,7 @@ block_append(head, tail)
tail->nd_end = tail;
}
end->nd_next = tail;
- head->nd_end = tail->nd_end;
+ h->nd_end = tail->nd_end;
return head;
}