enthought / enthought/pyface

Qt code editor monkey patch interferes with ipython highlighting

Open
#462 1 comment 0 reactions 0 assignees View on GitHub
ETS Backlog
Dominant language
Python
Stars
115
Forks
54
PR merge metrics
No merged PRs in 30d

Description

Importing pyface into an IPython shell causes syntax highlighting to become whacky:

![flipfloppy](https://user-images.githubusercontent.com/1588456/70393714-85547800-19b2-11ea-9d60-acdf1fab5667.gif)

From a bit of sleuthing I've narrowed it down to a monkey patch to the `RegexLexer` from `pygments` in the qt4 code editor:

https://github.com/enthought/pyface/blob/b2cb6f5aaa47a663316ca232ccc5fbe87a595a7d/pyface/ui/qt4/code_editor/pygments_highlighter.py#L83-L84

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.