aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2018-12-02 21:01:21 +0200
committerArnold D. Robbins <arnold@skeeve.com>2018-12-02 21:01:21 +0200
commit8f20ce9c6198e6c2f4705e4d53084fd48cd30a75 (patch)
treec3831b66e277c9ad2d0dcdb46e31bf5f0c2cde06 /awkgram.c
parentee2f450c7cf2550ca68fb205c5df22eca13e5b74 (diff)
downloadegawk-8f20ce9c6198e6c2f4705e4d53084fd48cd30a75.tar.gz
egawk-8f20ce9c6198e6c2f4705e4d53084fd48cd30a75.tar.bz2
egawk-8f20ce9c6198e6c2f4705e4d53084fd48cd30a75.zip
Additional commenting fix.
Diffstat (limited to 'awkgram.c')
-rw-r--r--awkgram.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/awkgram.c b/awkgram.c
index d467eb17..36955071 100644
--- a/awkgram.c
+++ b/awkgram.c
@@ -5075,6 +5075,16 @@ mk_program()
(void) list_merge(cp, beginfile_block);
(void) list_merge(cp, endfile_block);
+ if (outer_comment != NULL) {
+ cp = list_merge(list_create(outer_comment), cp);
+ outer_comment = NULL;
+ }
+
+ if (interblock_comment != NULL) {
+ (void) list_append(cp, interblock_comment);
+ interblock_comment = NULL;
+ }
+
goto out;
} else {