diff --git a/lang/ast/ctx.c b/lang/ast/ctx.c index 4b603d2..24e6ae2 100644 --- a/lang/ast/ctx.c +++ b/lang/ast/ctx.c @@ -287,6 +287,7 @@ struct ivy_diag *parser_push_diag( } if (tok) { + ivy_diag_set_location(diag, tok->t_start.c_row, tok->t_start.c_col); const struct ivy_diag_highlight hl[] = { IVY_DIAG_HL( ERROR, tok->t_start.c_row, tok->t_start.c_col,