Skip to content

Commit 4e12aea

Browse files
committed
Misc: upgrade sedlex
1 parent 450ddbb commit 4e12aea

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

compiler/lib/flow_lexer.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -832,9 +832,9 @@ let backquote env lexbuf =
832832

833833
let 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 =

compiler/lib/parse_js.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

dune-project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
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

js_of_ocaml-compiler.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)