diff options
| author | Oxore <oxore@protonmail.com> | 2023-08-12 22:36:30 +0300 |
|---|---|---|
| committer | Oxore <oxore@protonmail.com> | 2023-08-12 22:42:06 +0300 |
| commit | b63c89c477adeb6a0f065938ef4c164ebb6676ba (patch) | |
| tree | ee53457d4b7634237a75f3962edb4d7b43b4c6a2 | |
| parent | b17c600f5235e30fd41a553bbdb83d0e718de285 (diff) | |
Fix comment emission
| -rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); } |
