summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChristiana Anthony <ofonime41@gmail.com>2022-11-08 16:25:06 +0100
committerGitHub <noreply@github.com>2022-11-08 16:25:06 +0100
commit7ed218ed01657b961116fb01463431c6019a7d00 (patch)
treed17d8fc7c434a6e8b48539b2aeb2c141d92dcbcc /tools
parentfd113a31bd07d552420b1db2e6306cdf83d52368 (diff)
downloadocaml-7ed218ed01657b961116fb01463431c6019a7d00.tar.gz
Add colors to error message hints (#11685)
Diffstat (limited to 'tools')
-rw-r--r--tools/ocamltex.ml5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/ocamltex.ml b/tools/ocamltex.ml
index 43e5c03a4c..e6b2c8cd0d 100644
--- a/tools/ocamltex.ml
+++ b/tools/ocamltex.ml
@@ -756,7 +756,7 @@ let process_file file =
"when parsing a caml_example environment in@ \
%s, line %d:@,\
the signature mode is only compatible with \"caml_example*\"@ \
- Hint: did you forget to add \"*\"?"
+ @{<hint>Hint@}: did you forget to add \"*\"?"
file (line_number-2);
| Text_transform.Intersection {line;file;left;right} ->
fatal
@@ -765,7 +765,8 @@ let process_file file =
spanned the interval %d-%d,@ \
intersecting with another \"%a\" transform @ \
on the %d-%d interval.@ \
- Hind: did you try to elide a code fragment which raised a warning?"
+ @{<hint>Hint@}: did you try to elide a code fragment \
+ which raised a warning?"
file (line-2)
Text_transform.pp left.kind left.start left.stop
Text_transform.pp right.kind right.start right.stop