2
0
Эх сурвалжийг харах

Fix #3133 by show the line of the syntax error

gingerBill 1 жил өмнө
parent
commit
1951bc45a6
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      src/error.cpp

+ 1 - 1
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);