From 1951bc45a68ec930d5e10620f9e4e9c84cf74ded Mon Sep 17 00:00:00 2001 From: gingerBill Date: Wed, 20 Mar 2024 13:55:47 +0000 Subject: [PATCH] Fix #3133 by show the line of the syntax error --- src/error.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error.cpp b/src/error.cpp index b96719420..2458061c2 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -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);