DMD now has colorized syntax highlighting in error messages
Adam D. Ruppe via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Mon May 15 06:10:40 PDT 2017
On Sunday, 14 May 2017 at 14:07:20 UTC, Walter Bright wrote:
> The only downside is now we have to rather tediously tweak the
> error message texts so they use backticks.
It also dilutes the meaning of color. I've been wanting to see
highlighted matches and failures in overload resolution and
constraint checks (this has been on my todo list for a while
since every attempt so far has failed; as I'm sure you know, it
isn't trivial to implement in the current compiler). Such
highlights would now have to compete with unnecessary syntax
coloration; you can't visually scan for color anymore since it
doesn't mean anything special.
Terminal color choices are also painful, though I kinda believe
this is the terminal's fault. I ended up doing hacky code in mine
to ensure a legible palette, but still, not everyone has done
that.
Suppose I, or someone else, were to write a PR eliminating your
syntax highlighting in favor of semantic highlighting -
colorizing to add more detail about the error message instead of
about the lexer's output. Will you accept it?
More information about the Digitalmars-d-announce
mailing list