summaryrefslogtreecommitdiff
path: root/src/sys/np/core/np_lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sys/np/core/np_lex.c')
-rw-r--r--src/sys/np/core/np_lex.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sys/np/core/np_lex.c b/src/sys/np/core/np_lex.c
index 389f1e2..222feba 100644
--- a/src/sys/np/core/np_lex.c
+++ b/src/sys/np/core/np_lex.c
@@ -144,6 +144,11 @@ static int
lex_cmptok(char *tokstr, struct lex_token *res)
{
switch (*tokstr) {
+ case 'r':
+ if (strcmp(tokstr, TOKEN_RETURN) == 0) {
+ res->token = TT_RETURN;
+ }
+ return 0;
case 'b':
if (strcmp(tokstr, TOKEN_BEGIN) == 0) {
res->token = TT_BEGIN;