diff options
Diffstat (limited to 'src/frontend/lexer.c')
-rw-r--r-- | src/frontend/lexer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/frontend/lexer.c b/src/frontend/lexer.c index a832a17..2d9bddd 100644 --- a/src/frontend/lexer.c +++ b/src/frontend/lexer.c @@ -71,9 +71,10 @@ struct token* lex_step(struct Source *src,struct Translation_Data *translation_d return get_token(src->src+src->where_in_src-sizeof("transitions")+1,sizeof("transitions")-1,KW_TRANSITIONS,src->current_row,src->current_column); if(check_and_move_if_on_word("if",sizeof("if")-1,src,1)) return get_token(src->src+src->where_in_src-sizeof("if")+1,sizeof("if")-1,KW_IF,src->current_row,src->current_column); - if(check_and_move_if_on_word("else",sizeof("else")-1,src,1)) 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); |