]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - parser.c
first parsing of [ - pushing temp changes
[xonotic/gmqcc.git] / 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"));