Browse Source

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

Nicolas Cannasse 13 years ago
parent
commit
4965f733a3
1 changed files with 2 additions and 2 deletions
  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|];
 	}