]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
lexer needs to fill the token for the index operator with actual content...
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 11 Nov 2012 17:31:37 +0000 (18:31 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 11 Nov 2012 17:31:37 +0000 (18:31 +0100)
lexer.c

diff --git a/lexer.c b/lexer.c
index e68af816853ad5dc0637e681f5e685831f337d43..19d67207f5b0c04ccff0c8b0e2af9491e06a2717 100644 (file)
--- 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 ']':