lexer needs to fill the token for the index operator with actual content...

This commit is contained in:
Wolfgang (Blub) Bumiller 2012-11-11 18:31:37 +01:00
parent 2994d308a0
commit caf8946f99

View file

@ -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 ']':