aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2026-01-09 09:04:35 +0100
committerlemon <lsof@mailbox.org>2026-01-09 09:04:35 +0100
commit08a2f1a3dc834ed5ba7266be99306fccfb768c1a (patch)
treed6ab19bfccd76091906d5f0ac0c4dac406231b07
parent155ced48ff098cf7dcb7a3639fb96f10e411d199 (diff)
cpp: fix single-line comment after preprocessor directive
It was eating up the newline token
-rw-r--r--c/lex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/lex.c b/c/lex.c
index f8a6b52..e2d86c6 100644
--- a/c/lex.c
+++ b/c/lex.c
@@ -456,7 +456,7 @@ Begin:
if (lx->chrbuf[lx->chrbuf0] == '\n') {
lx->chridx = lx->chridxbuf[lx->chrbuf0++];
lx->eof = lx->chridx >= lx->ndat;
- goto Begin;
+ RET('\n');
}
} while (++lx->chrbuf0 < countof(lx->chrbuf));
fillchrbuf(lx);