From 2ef0203d172d38f73cbae9698fa3dbdc48f985db Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Fri, 2 Nov 2012 18:30:20 +0100 Subject: [PATCH] Fix a minor bug in the lexer --- lexer.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lexer.c b/lexer.c index d5f22a3..02a7ff4 100644 --- a/lexer.c +++ b/lexer.c @@ -364,17 +364,11 @@ static int lex_skipwhite(lex_file *lex) ch = lex_getch(lex); if (ch == '*') { ch = lex_getch(lex); - if (ch == '/') { - ch = lex_getch(lex); + if (ch == '/') break; - } } } - if (ch == '/') /* allow *//* direct following comment */ - { - lex_ungetch(lex, ch); - ch = ' '; /* cause TRUE in the isspace check */ - } + ch = ' '; /* cause TRUE in the isspace check */ continue; } /* Otherwise roll back to the slash and break out of the loop */ -- 2.39.2