mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-03-01 14:30:56 +00:00
Fix a minor bug in the lexer
This commit is contained in:
parent
b1b586d398
commit
2ef0203d17
1 changed files with 2 additions and 8 deletions
8
lexer.c
8
lexer.c
|
@ -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 */
|
||||||
|
|
Loading…
Reference in a new issue