summaryrefslogtreecommitdiffstats
path: root/cmd-parse.y
diff options
context:
space:
mode:
authornicm <nicm>2020-06-04 16:06:01 +0000
committernicm <nicm>2020-06-04 16:06:01 +0000
commit4403afe29c2106371ff43c28b9f0a3ed50fd61ee (patch)
tree96e39c53226acc28244401487fe8d7cb69ef5078 /cmd-parse.y
parent4ea3370316671084da16070137c4be6505d723bc (diff)
A } can go on the same line as a command.
Diffstat (limited to 'cmd-parse.y')
-rw-r--r--cmd-parse.y4
1 files changed, 3 insertions, 1 deletions
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);
}
%%