Skip to content

Commit

Permalink
correctly report line 1 instead of line 0 for errors on first line
Browse files Browse the repository at this point in the history
  • Loading branch information
ncannasse committed Oct 3, 2012
1 parent 76b041d commit 4965f73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lexer.mll
Original file line number Diff line number Diff line change
Expand Up @@ -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|];
}


Expand Down

0 comments on commit 4965f73

Please sign in to comment.