From caf8946f9926d4b367289880b81cb9be9546b42c Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Sun, 11 Nov 2012 18:31:37 +0100 Subject: [PATCH] lexer needs to fill the token for the index operator with actual content... --- lexer.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lexer.c b/lexer.c index e68af81..19d6720 100644 --- a/lexer.c +++ b/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 ']': -- 2.39.2