X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=lexer.c;h=1bea430edd36b1929505d8baf2fba3b7b9457cde;hb=b81b5d8c4defdbb034672786d7b589c5f7b59daf;hp=ebbe1880c01f330ecb24fdf0ec81827f00000c55;hpb=6a346745aae647a10a1c6401565fb19891108424;p=xonotic%2Fgmqcc.git 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;