]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
'local' becomes a keyword
authorWolfgang (Blub) Bumiller <blub@speed.at>
Tue, 14 Aug 2012 14:10:17 +0000 (16:10 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Tue, 14 Aug 2012 14:10:17 +0000 (16:10 +0200)
lexer.c

diff --git a/lexer.c b/lexer.c
index 29b3018916b4f93f3f74b5235b7cf108beb05695..0fa25f79b309a43eb3c6e62396a3cddf69d7f967 100644 (file)
--- a/lexer.c
+++ b/lexer.c
@@ -627,6 +627,7 @@ int lex_do(lex_file *lex)
                         !strcmp(v, "if")     ||
                         !strcmp(v, "else")   ||
                         !strcmp(v, "var")    ||
+                        !strcmp(v, "local")  ||
                         !strcmp(v, "return") ||
                         !strcmp(v, "const"))
                        lex->tok->ttype = TOKEN_KEYWORD;