diff options
-rw-r--r-- | awkgram.c | 3 | ||||
-rw-r--r-- | awkgram.y | 3 |
2 files changed, 6 insertions, 0 deletions
@@ -5456,6 +5456,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 { @@ -5684,6 +5686,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); } @@ -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); } |