]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
return is a keyword
authorWolfgang Bumiller <wolfgang.linux@bumiller.com>
Thu, 26 Jul 2012 21:18:15 +0000 (23:18 +0200)
committerWolfgang Bumiller <wolfgang.linux@bumiller.com>
Thu, 26 Jul 2012 21:18:15 +0000 (23:18 +0200)
lexer.c

diff --git a/lexer.c b/lexer.c
index ebbe1880c01f330ecb24fdf0ec81827f00000c55..1bea430edd36b1929505d8baf2fba3b7b9457cde 100644 (file)
--- a/lexer.c
+++ b/lexer.c
@@ -579,10 +579,11 @@ int lex_do(lex_file *lex)
                } else if (!strcmp(v, "vector")) {
                        lex->tok->ttype = TOKEN_TYPENAME;
                    lex->tok->constval.t = TYPE_VECTOR;
-               } else if (!strcmp(v, "for") ||
-                        !strcmp(v, "while") ||
-                        !strcmp(v, "do")    ||
-                        !strcmp(v, "var")   ||
+               } else if (!strcmp(v, "for")  ||
+                        !strcmp(v, "while")  ||
+                        !strcmp(v, "do")     ||
+                        !strcmp(v, "var")    ||
+                        !strcmp(v, "return") ||
                         !strcmp(v, "const"))
                        lex->tok->ttype = TOKEN_KEYWORD;