Skip to content

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

Merged
Anteru merged 1 commit intopygments:masterfrom
jessetan:#1832-multiline-shell-without-ps2
Jun 4, 2021
Merged

Correctly highlight multiline console input, even without PS2 prompt#1833
Anteru merged 1 commit intopygments:masterfrom
jessetan:#1832-multiline-shell-without-ps2

Conversation

@jessetan
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@johnandersen777
Copy link
Copy Markdown

@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