The following piece of shell is incorrectly syntax highlighted. Only the first line is correctly highlighted, the rest is gray:
This is happening since version 2.8.0 and also happens in the online demo page on pygments.org: https://pygments.org/demo/?lexer=console&code=%24%20echo%20%22foo%20%5C%0A%20%20%20%20bar%22
The last correct version was 2.7.4
Example effect for Sphinx documentation with Pygments version 2.9.0

Example effect for Sphinx documentation with Pygments version 2.7.4

The following piece of shell is incorrectly syntax highlighted. Only the first line is correctly highlighted, the rest is gray:
This is happening since version 2.8.0 and also happens in the online demo page on pygments.org: https://pygments.org/demo/?lexer=console&code=%24%20echo%20%22foo%20%5C%0A%20%20%20%20bar%22
The last correct version was 2.7.4
Example effect for Sphinx documentation with Pygments version 2.9.0

Example effect for Sphinx documentation with Pygments version 2.7.4
