Skip to content
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

Correctly highlight multiline console input, even without PS2 prompt #1833

Merged
merged 1 commit into from Jun 4, 2021

Conversation

jessetan
Copy link
Contributor

@jessetan jessetan commented Jun 4, 2021

This PR restores highlighting of console/shell input when a line ends with a backslash, but the next line is not the PS2 prompt (>).
Includes test updates.

Fixes #1832.

@Anteru Anteru self-assigned this Jun 4, 2021
@birkenfeld
Copy link
Member

LGTM.

@Anteru Anteru added the changelog-update Items which need to get mentioned in the changelog label Jun 4, 2021
@Anteru Anteru added this to the 2.10 milestone Jun 4, 2021
@Anteru Anteru merged commit d228fc7 into pygments:master Jun 4, 2021
@Anteru
Copy link
Collaborator

Anteru commented Jun 4, 2021

Merged, thanks for your contribution!

@jessetan jessetan deleted the #1832-multiline-shell-without-ps2 branch June 7, 2021 07:20
@pdxjohnny
Copy link

@jessetan Thank you!

@Anteru Anteru added A-lexing area: changes to individual lexers and removed changelog-update Items which need to get mentioned in the changelog labels Aug 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lexing area: changes to individual lexers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiline shell (with backslash) is highlighted incorrectly
4 participants