diff options
Diffstat (limited to 'src/frontend/lexer.c')
-rw-r--r-- | src/frontend/lexer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/frontend/lexer.c b/src/frontend/lexer.c index 2d9bddd..10bb1c4 100644 --- a/src/frontend/lexer.c +++ b/src/frontend/lexer.c @@ -75,6 +75,10 @@ struct token* lex_step(struct Source *src,struct Translation_Data *translation_d return get_token(src->src+src->where_in_src-sizeof("else")+1,sizeof("else")-1,KW_ELSE,src->current_row,src->current_column); if(check_and_move_if_on_word("granted",sizeof("granted")-1,src,1)) return get_token(src->src+src->where_in_src-sizeof("granted")+1,sizeof("granted")-1,KW_GRANTED,src->current_row,src->current_column); + if(check_and_move_if_on_word("entering",sizeof("entering")-1,src,1)) + return get_token(src->src+src->where_in_src-sizeof("entering")+1,sizeof("entering")-1,KW_ENTERING,src->current_row,src->current_column); + if(check_and_move_if_on_word("exiting",sizeof("exiting")-1,src,1)) + return get_token(src->src+src->where_in_src-sizeof("exiting")+1,sizeof("exiting")-1,KW_EXITING,src->current_row,src->current_column); |