aboutsummaryrefslogtreecommitdiffhomepage
path: root/c/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/lex.c')
-rw-r--r--c/lex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/lex.c b/c/lex.c
index 06457c5..eab9ce3 100644
--- a/c/lex.c
+++ b/c/lex.c
@@ -479,7 +479,7 @@ Begin:
if (match(lx, '=')) RET(TKSETDIV);
if (match(lx, '/')) {
/* // comment */
- while (!lx->eof && !match(lx, '\n'))
+ while (!lx->eof && peek(lx, 0) != '\n')
next(lx);
goto Begin;
}