fix(lexer): typo in func name

This commit is contained in:
Matteo Flebus 2026-01-20 19:29:24 +01:00
parent bbb69fddca
commit 927e4ea25a

View file

@ -13,7 +13,7 @@
/* @brief: sets the ctx->current_token to [tok].
* this function is called by token_peek().
*/
static void update_ctx->current_token(struct token *tok, struct lexer_context *ctx)
static void update_current_token(struct token *tok, struct lexer_context *ctx)
{
ctx->current_token = tok;
}
@ -22,7 +22,7 @@ static void update_ctx->current_token(struct token *tok, struct lexer_context *c
* Also sets ctx->current_token to NULL.
* this function is called by token_pop().
*/
static void update_ctx->previous_token(struct token *tok, struct lexer_context *ctx)
static void update_previous_token(struct token *tok, struct lexer_context *ctx)
{
free_token(&ctx->previous_token);
ctx->previous_token = tok;