You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2e99e60 fixed one case but broke another. I'm turning this into a variant instead of commenting & forgetting to match a condition
Also encaptulating the tag logic in a function so that they open & close well
Copy file name to clipboardExpand all lines: jscomp/super_errors/super_misc.ml
+56-30Lines changed: 56 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,13 @@ let leading_space_count str =
26
26
in
27
27
_leading_space_count str (String.length str) 0
28
28
29
+
typecurrent_printed_line_status =
30
+
| Is_error_start_line
31
+
| Is_error_end_line
32
+
| Strictly_between_start_and_end
33
+
| Only_error_line
34
+
| Not_error_line
35
+
29
36
(* ocaml's reported line/col numbering is horrible and super error-prone when
30
37
being handled programmatically (or humanly for that matter. If you're an
31
38
ocaml contributor reading this: who the heck reads the character count
@@ -64,27 +71,30 @@ ppf
64
71
|None -> 0
65
72
|Somen -> n
66
73
in
67
-
(* btw, these are unicode chars. They're not of length 1. Careful; we need to
68
-
explicitly tell Format to treat them as length 1 below *)
69
-
let separator =if columns_to_cut =0then"│"else"┆"in
70
74
(* coloring *)
71
-
let (highlighted_line_number, highlighted_content): (string -> string -> unit, Format.formatter, unit) format * (unit, Format.formatter, unit) format =
75
+
let (highlighted_line_number, highlighted_open_tag): (string -> string -> unit, Format.formatter, unit) format * (unit, Format.formatter, unit) format =
72
76
if is_warning then ("@{<info>%s@}@{<dim> @<1>%s @}", "@{<info>")
0 commit comments