Zoltan Somogyi
bda9772154
Use color when explaining format problems.
...
compiler/format_call_errors.m:
Instead of getting string.parse_util.m to describe each error we discover
with a call to string.format, io.format etc, and coloring the whole
explanation, color just the parts that we would color in other diagnostics.
This requires a greatly modified copy of the code in string.parse_util.m.
This copy constructs partially-colored format pieces instead of a string.
library/string.parse_util.m:
Move that code to the end of this module, and document the need
to keep the two versions of this code in sync.
tests/invalid/string_format_bad.err_exp:
tests/invalid/string_format_unknown.err_exp:
tests/warnings/format_call_multi.err_exp:
tests/warnings/format_call_warning.err_exp:
Expect updated diagnostics.
2024-05-21 01:33:56 +10:00
..
2023-06-26 20:05:24 +10:00
2024-02-20 17:18:52 +11:00
2023-07-27 13:55:54 +10:00
2023-07-26 16:23:47 +02:00
2024-03-10 21:14:00 +11:00
2024-02-20 15:09:17 +11:00
2023-07-26 16:23:47 +02:00
2024-02-20 17:18:52 +11:00
2024-02-20 15:09:17 +11:00
2023-07-26 16:22:04 +02:00
2023-07-26 16:22:04 +02:00
2024-03-26 18:36:25 +11:00
2024-05-04 00:27:34 +10:00
2022-12-05 09:45:11 +11:00
2023-07-26 16:23:47 +02:00
2024-02-29 21:45:59 +11:00
2023-10-16 09:57:33 +11:00
2024-02-20 17:18:52 +11:00
2023-09-26 13:07:51 +10:00
2022-12-05 09:45:11 +11:00
2023-11-29 16:28:07 +11:00
2023-07-26 22:26:51 +02:00
2023-07-26 23:55:07 +02:00
2023-07-26 23:55:07 +02:00
2023-12-20 15:32:02 +11:00
2023-07-11 14:22:13 +02:00
2024-04-20 03:33:19 +10:00
2023-07-27 13:55:54 +10:00
2023-02-21 00:40:31 +11:00
2022-12-27 18:27:52 +11:00
2022-12-27 18:27:52 +11:00
2023-01-05 20:15:05 +11:00
2022-12-27 18:27:52 +11:00
2023-07-26 16:23:47 +02:00
2023-01-25 16:48:45 +11:00
2024-01-16 11:48:45 +11:00
2023-10-16 09:57:33 +11:00
2023-07-31 01:39:13 +02:00
2024-01-13 03:05:17 +11:00
2024-02-12 21:21:24 +11:00
2023-04-24 13:52:10 +10:00
2023-04-27 17:34:03 +10:00
2023-04-24 13:52:10 +10:00
2023-10-16 09:57:33 +11:00
2023-04-24 13:52:10 +10:00
2023-07-26 16:22:04 +02:00
2024-02-20 17:18:52 +11:00
2023-09-26 00:56:19 +10:00
2024-05-04 00:27:34 +10:00
2024-03-27 19:04:33 +11:00
2023-02-21 00:40:31 +11:00
2023-07-26 16:22:04 +02:00
2023-01-30 17:26:31 +11:00
2024-05-01 20:22:00 +10:00
2024-02-20 17:18:52 +11:00
2023-09-16 19:12:52 +10:00
2023-10-24 21:11:53 +11:00
2023-09-26 00:56:19 +10:00
2023-01-13 18:54:04 +11:00
2024-04-05 17:20:32 +11:00
2024-04-05 17:20:32 +11:00
2024-05-04 00:27:34 +10:00
2024-02-20 17:18:52 +11:00
2023-07-26 22:26:51 +02:00
2023-02-21 00:40:31 +11:00
2024-02-20 15:09:17 +11:00
2024-03-11 07:27:30 +11:00
2023-09-22 09:35:23 +10:00
2023-02-21 00:40:31 +11:00
2024-05-04 00:27:34 +10:00
2023-02-26 21:52:41 +11:00
2024-02-13 15:56:00 +11:00
2024-03-31 03:25:42 +11:00
2023-02-21 00:40:31 +11:00
2023-09-20 21:28:27 +10:00
2023-07-26 22:26:51 +02:00
2023-07-26 22:26:51 +02:00
2023-07-26 23:55:07 +02:00
2024-05-01 20:22:00 +10:00
2023-07-27 13:55:54 +10:00
2023-07-27 13:55:54 +10:00
2023-07-26 22:26:51 +02:00
2023-07-26 22:26:51 +02:00
2023-07-26 22:26:51 +02:00
2023-07-26 22:26:51 +02:00
2023-07-26 22:26:51 +02:00
2024-02-20 17:18:52 +11:00
2023-01-11 17:10:00 +11:00
2023-07-26 22:26:51 +02:00
2024-02-20 15:09:17 +11:00
2024-02-16 02:47:46 +11:00
2023-02-09 10:39:58 +11:00
2024-04-20 03:33:19 +10:00
2024-05-21 01:33:56 +10:00
2023-07-04 00:00:09 +02:00
2023-08-02 14:22:13 +02:00
2024-05-01 20:22:00 +10:00
2024-02-20 15:09:17 +11:00
2023-07-27 13:55:54 +10:00
2023-07-27 13:55:54 +10:00
2024-02-27 11:10:08 +11:00
2023-02-21 00:40:12 +11:00
2023-10-23 11:42:05 +11:00
2023-07-26 23:55:07 +02:00
2023-07-31 01:39:13 +02:00
2022-12-27 18:27:52 +11:00
2023-04-03 20:22:33 +10:00
2023-04-03 20:22:33 +10:00
2023-04-03 20:22:33 +10:00
2022-12-27 18:27:52 +11:00
2024-02-20 15:09:17 +11:00
2023-07-26 23:55:07 +02:00
2023-10-23 11:24:09 +11:00