mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-21 10:51:10 +00:00
lexer needs to fill the token for the index operator with actual content...
This commit is contained in:
parent
2994d308a0
commit
caf8946f99
1 changed files with 5 additions and 0 deletions
5
lexer.c
5
lexer.c
|
@ -867,6 +867,11 @@ int lex_do(lex_file *lex)
|
|||
case '{':
|
||||
case '}':
|
||||
case '[':
|
||||
if (!lex_tokench(lex, ch) ||
|
||||
!lex_endtoken(lex))
|
||||
{
|
||||
return (lex->tok.ttype = TOKEN_FATAL);
|
||||
}
|
||||
if (!lex->flags.noops)
|
||||
return (lex->tok.ttype = TOKEN_OPERATOR);
|
||||
case ']':
|
||||
|
|
Loading…
Reference in a new issue