summaryrefslogtreecommitdiff
path: root/src/lexer/lexer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lexer/lexer.c')
-rw-r--r--src/lexer/lexer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lexer/lexer.c b/src/lexer/lexer.c
index 9be4cb1..7bb1b93 100644
--- a/src/lexer/lexer.c
+++ b/src/lexer/lexer.c
@@ -66,7 +66,7 @@ lex_identifier(struct lexer *ctx, struct token *tok)
tok->kind = kwd->tok_kind;
tok->flags |= kwd->tok_flags;
} else {
- tok->kind = TK_IDENTIFIER;
+ tok->kind = TOK_IDENTIFIER;
}
}
@@ -90,11 +90,11 @@ lexer_next(struct lexer *ctx, struct token *tok)
}
if (*ctx->pos == '\0') {
- tok->kind = TK_EOF;
+ tok->kind = TOK_EOF;
return true;
}
- tok->kind = TK_UNKNOWN;
+ tok->kind = TOK_UNKNOWN;
return true;
}