aboutsummaryrefslogtreecommitdiffstats
path: root/awkgram.y
diff options
context:
space:
mode:
Diffstat (limited to 'awkgram.y')
-rw-r--r--awkgram.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/awkgram.y b/awkgram.y
index f6013779..a1bbc775 100644
--- a/awkgram.y
+++ b/awkgram.y
@@ -2908,6 +2908,8 @@ allow_newline(void)
comment->memory->stptr[comment->memory->stlen] = '\0';
} else {
comment = bcalloc(Op_comment, 1, sourceline);
+ comment->source_file = source;
+
comment->memory = make_str_node(tokstart, tok - tokstart, 0);
}
// } else {
@@ -3136,6 +3138,7 @@ retry:
comment->memory->stptr[comment->memory->stlen] = '\0';
} else {
comment = bcalloc(Op_comment, 1, sourceline);
+ comment->source_file = source;
comment->memory = make_str_node(tokstart, tok - tokstart, 0);
}