mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 14:12:36 +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
10
lexer.c
10
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 */
|
||||
|
|
Loading…
Reference in a new issue