From 1d4661f7a4cc91cf2b8d76c3b7cd6a20ce4104d2 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Fri, 9 May 2025 13:38:38 +0100 Subject: [PATCH] lang: ast: fix parser_push_diag not setting diag location --- lang/ast/ctx.c | 1 + 1 file changed, 1 insertion(+) 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,