From: Wolfgang Bumiller Date: Thu, 26 Jul 2012 21:18:15 +0000 (+0200) Subject: return is a keyword X-Git-Tag: 0.1-rc1~398 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=331c00dd50b07af4e31225c8533e88bdf604709b;p=xonotic%2Fgmqcc.git return is a keyword --- diff --git a/lexer.c b/lexer.c index ebbe188..1bea430 100644 --- 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;