diff options
author | Georg Brandl <georg@python.org> | 2014-10-07 13:44:29 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-10-07 13:44:29 +0200 |
commit | 9cbc7803dd8e7826393721fe4acbd702843e131c (patch) | |
tree | 6c417b6d4a454c5fa3e00c63bd10b045a47ad068 /pygments/lexers/python.py | |
parent | 576280a4aa6fdb54a6d9ca812ccefa69d2ad9750 (diff) | |
download | pygments-9cbc7803dd8e7826393721fe4acbd702843e131c.tar.gz |
Closes #874: do not swallow incomplete tracebacks in the Python console lexer.
Diffstat (limited to 'pygments/lexers/python.py')
-rw-r--r-- | pygments/lexers/python.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pygments/lexers/python.py b/pygments/lexers/python.py index 6cd0a6c8..411f7bc7 100644 --- a/pygments/lexers/python.py +++ b/pygments/lexers/python.py @@ -384,6 +384,9 @@ class PythonConsoleLexer(Lexer): for item in do_insertions(insertions, pylexer.get_tokens_unprocessed(curcode)): yield item + if curtb: + for i, t, v in tblexer.get_tokens_unprocessed(curtb): + yield tbindex+i, t, v class PythonTracebackLexer(RegexLexer): |