Loc.of_lexbuf

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
This commit is contained in:
Rudi Grinberg 2018-07-01 16:56:19 +07:00
parent c906801c69
commit a4bc260241
1 changed files with 1 additions and 4 deletions

View File

@ -61,10 +61,7 @@ let load fname =
| [Lparen; Atom (A "dune"); Atom s] ->
(Sexp.Loc.of_lexbuf lexbuf, Sexp.Atom.to_string s)
| _ ->
Loc.fail
{ start = Lexing.lexeme_start_p lexbuf
; stop = Lexing.lexeme_end_p lexbuf
} "%s" bad_dune_file
Loc.fail (Sexp.Loc.of_lexbuf lexbuf) "%s" bad_dune_file
in
match version with
| "1" ->