]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
first parsing of [ - pushing temp changes
authorWolfgang (Blub) Bumiller <blub@speed.at>
Sat, 10 Nov 2012 20:55:56 +0000 (21:55 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Sun, 11 Nov 2012 09:13:01 +0000 (10:13 +0100)
parser.c

index 0616b711b7fb97137a7d5fa9d6db5dc6e3517022..3ec8804174d0943dfc3fe158ab53907ee66e445e 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -1148,6 +1148,10 @@ static ast_expression* parse_expression_leave(parser_t *parser, bool stopatcomma
             parseerror(parser, "internal error: '(' should be classified as operator");
             goto onerr;
         }
+        else if (parser->tok == '[') {
+            parseerror(parser, "internal error: '[' should be classified as operator");
+            goto onerr;
+        }
         else if (parser->tok == ')') {
             if (wantop) {
                 DEBUGSHUNTDO(printf("do[op] )\n"));