From 1e6c88c44319694bfb2e9c0ca11db01ec670f0ad Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Mon, 26 Nov 2018 20:52:23 +0200 Subject: Continue polishing comments. New test. --- profile.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'profile.c') diff --git a/profile.c b/profile.c index 5494b170..3041545a 100644 --- a/profile.c +++ b/profile.c @@ -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); } } -- cgit v1.2.3