Issue #821 resolved

python traceback lexer is (slightly) wrong when there is several ':' in the last line

rndblnch
created an issue

some tracebacks contain 2 ':' in the last line, e.g.:

>>> 3/"3"
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for /: 'int' and 'str'

which is (incorrectly) lexed as:

("TypeError: unsupported operand type(s) for /", ": ", "'int' and 'str'", "\n")

and should be lexed as:

("TypeError", ": ", "unsupported operand type(s) for /: 'int' and 'str'", "\n")

Comments (2)

  1. Log in to comment