return is a keyword

This commit is contained in:
Wolfgang Bumiller 2012-07-26 23:18:15 +02:00
parent 308e24a4d9
commit 331c00dd50

View file

@ -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;