diff options
| author | Arnold D. Robbins <arnold@skeeve.com> | 2014-12-02 20:59:19 +0200 |
|---|---|---|
| committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-12-02 20:59:19 +0200 |
| commit | 53892e324939cf3526c9242a5ea81555dc16e408 (patch) | |
| tree | b6d65f174af872be2263eac1fe3781275acdb3b0 /ChangeLog | |
| parent | d07f0f9df7ea216ca579eed7a9b46d3e168619de (diff) | |
| download | gawk-comment.tar.gz | |
Redo commenting mechanism.comment
Diffstat (limited to 'ChangeLog')
| -rw-r--r-- | ChangeLog | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -1,3 +1,25 @@ +2014-12-02 Stephen Davies <sdavies@sdc.com.au> + + Improve comment handling in pretty printing. + Create a linked-list of comments and merge them in during + pretty-printing instead of into the instruction list at + parse time. + + * awk.h (comment_type, comment_text): New defines for NODE, + INSTRUCTION. + * awkgram.y (append_comment): New function. + (program_comment, function_comment): Removed. + (first_comment, last_comment): New variables. + (get_comment): Take a flag for newline; rework storage. Adjust calls. + (split_comment): Store comments in list. + (first_comment, last_comment, current_comment_type): New variables. + (dump_funcs): Set current_comment_type. + * main.c (main): Call print_extra_comments. + * profile.c (end_line): New function. + (print_extra_comments): New function. + (lind): New variable. + (pprint): Change how comments are handled. + 2014-11-26 Arnold D. Robbins <arnold@skeeve.com> * builtin.c (do_sub): Improve wording of gensub warnings. |
