From 4403afe29c2106371ff43c28b9f0a3ed50fd61ee Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 4 Jun 2020 16:06:01 +0000 Subject: A } can go on the same line as a command. --- cmd-parse.y | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd-parse.y b/cmd-parse.y index 6ec2eca3..0a0b1993 100644 --- a/cmd-parse.y +++ b/cmd-parse.y @@ -535,9 +535,11 @@ argument_statements : statement '}' { $$ = $1; } - | statements '}' + | statements statement '}' { $$ = $1; + TAILQ_CONCAT($$, $2, entry); + free($2); } %% -- cgit v1.2.3