Merge: highlight with ansi color (for console)
authorJean Privat <jean@pryen.org>
Thu, 30 Nov 2017 01:50:40 +0000 (20:50 -0500)
committerJean Privat <jean@pryen.org>
Thu, 30 Nov 2017 01:50:40 +0000 (20:50 -0500)
commit67411050dfd1ce8039b7dc2afb4b26c1de7ec149
tree4525fef27514b3c91b159d088f8f29244b1efe20
parentf1bc8aa1702044b7bb63023cc84f950bd57b3522
parent19ee9477553d9b6be60c065423241ef13cbef22b
Merge: highlight with ansi color (for console)

Because the nit interactive interpreter and nitx might want it

![capture du 2017-11-29 14-05-07](https://user-images.githubusercontent.com/135828/33395803-abb12fdc-d514-11e7-9921-75a3a1ec00bb.png)

This provides a new `AnsiHighlightVisitor` than can do stuff

Note: colors are currently hard-coded and only comments, keywords, classnames and literals are highlighted. However, since this reuse the full highlighting infrastructure, a lot of semantic things can be added.

Pull-Request: #2593