From: Wolfgang (Blub) Bumiller <blub@speed.at>
Date: Sun, 11 Nov 2012 17:31:37 +0000 (+0100)
Subject: lexer needs to fill the token for the index operator with actual content...
X-Git-Tag: 0.1~19^2~29
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=caf8946f9926d4b367289880b81cb9be9546b42c;p=xonotic%2Fgmqcc.git

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

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