lang: ast: fix parser_push_diag not setting diag location
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user