summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 8c92a1d..d6b3dba 100644
--- a/main.c
+++ b/main.c
@@ -3122,7 +3122,7 @@ static int assem_emit(struct assem *const self, FILE *const stream)
}
if (stmt->comment_token) {
const struct token token = lex->tokbuf[stmt->comment_token];
- fprintf(stream, " %.*s", (int)token.length, lex->input + token.offset);
+ fprintf(stream, " |%.*s", (int)token.length - 1, lex->input + token.offset + 1);
}
fprintf(stream, "\n");
}