File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -832,9 +832,9 @@ let backquote env lexbuf =
832832
833833let wrap f =
834834 let f env =
835- let start, _ = Sedlexing. lexing_positions env.Lex_env. lex_lb in
835+ let start = Sedlexing. lexing_position_start env.Lex_env. lex_lb in
836836 let t = f env env.Lex_env. lex_lb in
837- let _, stop = Sedlexing. lexing_positions env.Lex_env. lex_lb in
837+ let stop = Sedlexing. lexing_position_curr env.Lex_env. lex_lb in
838838 t, Loc. create ~last_line: (Loc. line_end' ! (env.lex_last_loc)) start stop
839839 in
840840 let rec helper comments env =
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ end = struct
8585 Option. iter filename ~f: (Sedlexing. set_filename l);
8686 create ?report_error l
8787
88- let curr_pos lexbuf = snd ( Sedlexing. lexing_positions lexbuf.l)
88+ let curr_pos lexbuf = Sedlexing. lexing_position_curr lexbuf.l
8989
9090 let report_errors t res =
9191 match Flow_lexer.Lex_result. errors res with
Original file line number Diff line number Diff line change 2424 ( ppxlib ( >= 0 .15.0) )
2525 ( re :with -test)
2626 ( cmdliner ( >= 1 .1.0) )
27- ( sedlex ( >= 2 .3) )
27+ ( sedlex ( >= 3 .3) )
2828 ( qcheck :with -test)
2929 menhir
3030 menhirLib
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ depends: [
1919 "ppxlib" {>= "0.15.0"}
2020 "re" {with-test}
2121 "cmdliner" {>= "1.1.0"}
22- "sedlex" {>= "2 .3"}
22+ "sedlex" {>= "3 .3"}
2323 "qcheck" {with-test}
2424 "menhir"
2525 "menhirLib"
You can’t perform that action at this time.
0 commit comments