Rephrase error messages to avoid trailing periods
This looks especially awkward in messages like this one:
Is the period part of the invalid text or not? I had hoped that the bold highlighting would make it clear enough, but apparently not, at least not with Fira Code. Also, in environments where bold text might not show (e.g. web pages showing CI build output), it wouldn't help anyway.
Options:
- Remove trailing periods. It would avoid ambiguity, unless the highlighted portion actually ends in a period, and then a user might assume that it's a regular full stop. Also, it wouldn't work for multi-sentence messages.
- Rephrase messages so that the highlighted text comes after a colon or on a separate line.
Bonus: Highlight the region of source code containing the error like Rust does.
Edited by Andrej Petrović