Fix #3133 by show the line of the syntax error

This commit is contained in:
gingerBill
2024-03-20 13:55:47 +00:00
parent ba77a9464c
commit 1951bc45a6

View File

@@ -460,7 +460,7 @@ gb_internal void syntax_error_va(TokenPos const &pos, TokenPos end, char const *
error_out_coloured("Syntax Error: ", TerminalStyle_Normal, TerminalColour_Red);
error_out_va(fmt, va);
error_out("\n");
// show_error_on_line(pos, end);
show_error_on_line(pos, end);
} else if (pos.line == 0) {
error_out_empty();
error_out_coloured("Syntax Error: ", TerminalStyle_Normal, TerminalColour_Red);