Skip to content

Commit bd46a3e

Browse files
committed
Correct fragment range
1 parent 28cfceb commit bd46a3e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

compiler/syntax/src/res_core.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2711,8 +2711,8 @@ and parse_jsx_fragment start_pos p =
27112711
let children = parse_jsx_children p in
27122712
let children_end_pos = p.Parser.start_pos in
27132713
Parser.expect LessThan p;
2714-
let end_pos = p.Parser.end_pos in
27152714
Parser.expect Forwardslash p;
2715+
let end_pos = p.Parser.end_pos in
27162716
Parser.expect GreaterThan p;
27172717
(* location is from starting < till closing > *)
27182718
let loc = mk_loc start_pos end_pos in

0 commit comments

Comments
 (0)