]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - lexer.c
array index opening-paren can now return TOKEN_OPERATOR, partially handled in SYA
[xonotic/gmqcc.git] / lexer.c
diff --git a/lexer.c b/lexer.c
index 9f1fc4e37640c96ef868de8a01c1807fc1ce5f18..e68af816853ad5dc0637e681f5e685831f337d43 100644 (file)
--- a/lexer.c
+++ b/lexer.c
@@ -867,6 +867,8 @@ int lex_do(lex_file *lex)
         case '{':
         case '}':
         case '[':
+            if (!lex->flags.noops)
+                return (lex->tok.ttype = TOKEN_OPERATOR);
         case ']':
 
         case '#':