From 331c00dd50b07af4e31225c8533e88bdf604709b Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 26 Jul 2012 23:18:15 +0200 Subject: [PATCH] return is a keyword --- lexer.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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; -- 2.39.2