mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-30 15:41:12 +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);
|
||||
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 */
|
||||
}
|
||||
continue;
|
||||
}
|
||||
/* Otherwise roll back to the slash and break out of the loop */
|
||||
|
|
Loading…
Reference in a new issue