File: run.t

package info (click to toggle)
ocamlformat 0.28.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,436 kB
  • sloc: ml: 63,321; pascal: 4,769; lisp: 229; sh: 217; makefile: 121
file content (31 lines) | stat: -rw-r--r-- 1,078 bytes parent folder | download | duplicates (2)
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