]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - lexer.c
globals of type .vector will now properly generate 3 globals
[xonotic/gmqcc.git] / lexer.c
diff --git a/lexer.c b/lexer.c
index 0526b52cc4a44a0afec49926a0000ea58928b655..9f1fc4e37640c96ef868de8a01c1807fc1ce5f18 100644 (file)
--- a/lexer.c
+++ b/lexer.c
@@ -1054,7 +1054,8 @@ int lex_do(lex_file *lex)
                 !strcmp(v, "struct") ||
                 !strcmp(v, "union")  ||
                 !strcmp(v, "break")  ||
-                !strcmp(v, "continue"))
+                !strcmp(v, "continue") ||
+                !strcmp(v, "var"))
             {
                 lex->tok.ttype = TOKEN_KEYWORD;
             }