Fix a minor bug in the lexer

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-11-02 18:30:20 +01:00
parent b1b586d398
commit 2ef0203d17

View file

@ -364,17 +364,11 @@ static int lex_skipwhite(lex_file *lex)
ch = lex_getch(lex); ch = lex_getch(lex);
if (ch == '*') { if (ch == '*') {
ch = lex_getch(lex); ch = lex_getch(lex);
if (ch == '/') { if (ch == '/')
ch = lex_getch(lex);
break; 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; continue;
} }
/* Otherwise roll back to the slash and break out of the loop */ /* Otherwise roll back to the slash and break out of the loop */