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 /profile.c | |
parent | ed06eeafe3dc901759e20466446fec48e83402fc (diff) | |
download | egawk-1e6c88c44319694bfb2e9c0ca11db01ec670f0ad.tar.gz egawk-1e6c88c44319694bfb2e9c0ca11db01ec670f0ad.tar.bz2 egawk-1e6c88c44319694bfb2e9c0ca11db01ec670f0ad.zip |
Continue polishing comments. New test.
Diffstat (limited to 'profile.c')
-rw-r--r-- | profile.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1349,6 +1349,10 @@ print_comment(INSTRUCTION* pc, long in) if (pc->comment) { // chaining should only be two deep assert(pc->comment->comment == NULL); + // if first was EOL comment, next must be block comment, + // it needs to be indented. + if (pc->memory->comment_type == EOL_COMMENT) + in++; print_comment(pc->comment, in); } } |