Skip to content

Commit 8330d9e

Browse files
committed
fix tests
1 parent 030e551 commit 8330d9e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compiler/tests-compiler/js_parser_printer.ml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -813,6 +813,11 @@ let parse_print_token ?(invalid = false) ?(extra = false) s =
813813
| true -> Printf.printf "\n%2d: " pos.Parse_info.line
814814
| false -> ());
815815
if pos.Parse_info.line <> 0 then prev := pos.Parse_info.line;
816+
let s =
817+
match tok with
818+
| T_STRING _ -> Str.global_replace (Str.regexp {|\\r\\n|}) {|\n|} s
819+
| _ -> s
820+
in
816821
Printf.printf "%d:%s, " pos.Parse_info.col s;
817822
loop xs
818823
in

0 commit comments

Comments
 (0)