Skip to content

Commit 908640a

Browse files
committed
[interpreter] Remove bogus position transformation
1 parent bc76fd7 commit 908640a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

interpreter/text/parse.ml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ let make (type a) (start : _ -> _ -> a) : (module S with type t = a) =
3131
with
3232
| Parser.Error ->
3333
raise (Syntax (convert_pos buf, "unexpected token"))
34-
| Syntax (region, s) when region <> Source.no_region ->
35-
raise (Syntax (convert_pos buf, s))
3634

3735
let parse_string s =
3836
parse "string" (Lexing.from_string ~with_positions:true s)

0 commit comments

Comments
 (0)