1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
$ echo profile=default > .ocamlformat
Make sure the locations of errors in repl files are right.
$ ocamlformat --repl-file line5.repl
ocamlformat: ignoring "line5.repl" (syntax error)
File "line5.repl", line 5, characters 12-12:
Error: Syntax error: "a toplevel phrase must end with `;;`." expected.
[1]
$ ocamlformat --repl-file line6.repl
ocamlformat: ignoring "line6.repl" (syntax error)
File "line6.repl", line 6, characters 12-12:
Error: Syntax error: "a toplevel phrase must end with `;;`." expected.
[1]
$ ocamlformat --repl-file line7.repl
ocamlformat: ignoring "line7.repl" (syntax error)
File "line7.repl", line 7, characters 12-12:
Error: Syntax error: "a toplevel phrase must end with `;;`." expected.
[1]
$ ocamlformat --repl-file missing_semisemi.repl
ocamlformat: ignoring "missing_semisemi.repl" (syntax error)
File "missing_semisemi.repl", line 2, characters 10-10:
Error: Syntax error: "a toplevel phrase must end with `;;`." expected.
[1]
$ ocamlformat --repl-file empty_line_begin.repl
# foo bar;;
- : 0
|