lang: ast: fix parser_push_diag not setting diag location

This commit is contained in:
2025-05-09 13:38:38 +01:00
parent 31deaea266
commit 1d4661f7a4

View File

@@ -287,6 +287,7 @@ struct ivy_diag *parser_push_diag(
} }
if (tok) { if (tok) {
ivy_diag_set_location(diag, tok->t_start.c_row, tok->t_start.c_col);
const struct ivy_diag_highlight hl[] = { const struct ivy_diag_highlight hl[] = {
IVY_DIAG_HL( IVY_DIAG_HL(
ERROR, tok->t_start.c_row, tok->t_start.c_col, ERROR, tok->t_start.c_row, tok->t_start.c_col,