core: lexer: Add token for 'return' keyword
Signed-off-by: Chloe M. <chloe@mirocom.org>
This commit is contained in:
@@ -180,6 +180,11 @@ lexer_check_kw(struct cescal_state *state, struct token *res)
|
||||
}
|
||||
|
||||
break;
|
||||
case 'r':
|
||||
if (strcmp(res->s, "return") == 0) {
|
||||
res->type = TT_RETURN;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user