Browse Source

correctly report line 1 instead of line 0 for errors on first line

Nicolas Cannasse 13 năm trước cách đây
mục cha
commit
4965f733a3
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      lexer.mll

+ 2 - 2
lexer.mll

@@ -53,8 +53,8 @@ let make_file file =
 		lfile = file;
 		lline = 1;
 		lmaxline = 1;
-		llines = [0,0];
-		lalines = [|0,0|];
+		llines = [0,1];
+		lalines = [|0,1|];
 	}