diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2018-11-26 20:52:23 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2018-11-26 20:52:23 +0200 |
commit | 1e6c88c44319694bfb2e9c0ca11db01ec670f0ad (patch) | |
tree | 72c69c3b8f3dd2f2af13e9d09d8d8ddc5b7be78f /awkgram.c | |
parent | ed06eeafe3dc901759e20466446fec48e83402fc (diff) | |
download | egawk-1e6c88c44319694bfb2e9c0ca11db01ec670f0ad.tar.gz egawk-1e6c88c44319694bfb2e9c0ca11db01ec670f0ad.tar.bz2 egawk-1e6c88c44319694bfb2e9c0ca11db01ec670f0ad.zip |
Continue polishing comments. New test.
Diffstat (limited to 'awkgram.c')
-rw-r--r-- | awkgram.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -5353,6 +5353,9 @@ load_library(INSTRUCTION *file, void **srcfile_p) return false; } + if (do_pretty_print && ! do_profile) + return true; + if (strlen(src) == 0) { if (do_lint) lintwarn_ln(file->source_line, _("empty filename after @load")); @@ -6188,13 +6191,14 @@ retry: // fall through case ':': yylval = GET_INSTRUCTION(Op_cond_exp); - if (c == ':' && qm_col_count > 0) { - if (do_posix) { + if (qm_col_count > 0) { + if (! do_posix) { INSTRUCTION *new_comment = NULL; allow_newline(& new_comment); yylval->comment = new_comment; } - qm_col_count--; + if (c == ':') + qm_col_count--; } return lasttok = c; |