Make pygments highlighter compatible with pygments 2
Make pygments highlighter compatible with pygments 2

Changes same as done in ipython project
https://github.com/ipython/ipython/pull/6878
(IPython's highlighter is same as this)

geggo/pyface,brett-patterson/pyface,geggo/pyface