PythonTracebackLexer assumes all tracebacks start with
Traceback (most recent call last): and erroneously highlights tracebacks that don't have them:
: File "<stdin>", line 1 : ^ SyntaxError: invalid syntax
TerminalFormatter, Pygments highlights both with underlined red text.
Also, just to be clear, I'm talking about Pygments failing on ''just'' the traceback text above, not including the prompt text. And the
SyntaxError format isn't specific to the interactive interpreter, though that
KeyboardInterrupt format probably is.
Reported by guest