Bug 17396 – Add colorized syntax highlighting to error messages emitted by dmd

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-05-13T18:22:00Z
Last change time
2017-08-07T13:16:12Z
Assigned to
nobody
Creator
bugzilla
See also
https://issues.dlang.org/show_bug.cgi?id=12273

Comments

Comment #0 by bugzilla — 2017-05-13T18:22:34Z
Some basic colorization has already been implemented as the solution to https://issues.dlang.org/show_bug.cgi?id=12273 But we can go further with that by taking inspiration from Ddoc. In verrorPrint(), the message string can be scanned for text enclosed by `...`. This text can then be syntax color highlighted analogously to the way Ddoc does it. This should nicely improve the look of error messages.
Comment #1 by bugzilla — 2017-05-13T20:44:31Z
Comment #2 by github-bugzilla — 2017-05-14T13:15:56Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/23a97cfb8fe1699e47bfd556c08d61eedd02493a fix Issue 17396 - Add colorized syntax highlighting to error messages emitted by dmd https://github.com/dlang/dmd/commit/34d0259a8d14bb1331ab905911f72d6fce385aff Merge pull request #6777 from WalterBright/fix17396 fix Issue 17396 - Add colorized syntax highlighting to error messages…
Comment #3 by github-bugzilla — 2017-08-07T13:16:12Z
Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/23a97cfb8fe1699e47bfd556c08d61eedd02493a fix Issue 17396 - Add colorized syntax highlighting to error messages emitted by dmd https://github.com/dlang/dmd/commit/34d0259a8d14bb1331ab905911f72d6fce385aff Merge pull request #6777 from WalterBright/fix17396