-
Notifications
You must be signed in to change notification settings - Fork 631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pycon lexer still reorders input #2411
Comments
Also, some offsets are wrong. For example:
Note how it restarts to 0 in the middle of the stream. |
I think the simplest route here is to make PythonConsole a DelegatingLexer. It will make it a lot easier to reason about. |
jeanas
added a commit
to jeanas/pygments
that referenced
this issue
Apr 12, 2023
This is simpler and more reliable than hand-coding the state machine. Fixes pygments#2411
jeanas
added a commit
that referenced
this issue
Apr 17, 2023
This is simpler and more reliable than hand-coding the state machine. Fixes #2411
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unfortunately, even after fe42aac and #2410, PythonConsoleLexer still reorders some inputs. For example, this:
is rendered as
The text was updated successfully, but these errors were encountered: