diff options
| author | Georg Brandl <georg@python.org> | 2020-09-19 17:05:08 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2020-09-19 17:05:13 +0200 |
| commit | e631a9ca05ab9394107f7e7447c45ed93c133aa9 (patch) | |
| tree | cdf0e3a1789237cffa2a8c6abed01b38035eaa99 /pygments | |
| parent | 835097d7fb9f3c3049144442176a99d053652172 (diff) | |
| download | pygments-git-e631a9ca05ab9394107f7e7447c45ed93c133aa9.tar.gz | |
python traceback lexer: fix custom exceptions without message
fixes #1548
Diffstat (limited to 'pygments')
| -rw-r--r-- | pygments/lexers/python.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/python.py b/pygments/lexers/python.py index 10157999..051371f9 100644 --- a/pygments/lexers/python.py +++ b/pygments/lexers/python.py @@ -726,7 +726,7 @@ class PythonTracebackLexer(RegexLexer): bygroups(Text, Comment, Text)), # for doctests... (r'^([^:]+)(: )(.+)(\n)', bygroups(Generic.Error, Text, Name, Text), '#pop'), - (r'^([a-zA-Z_]\w*)(:?\n)', + (r'^([a-zA-Z_][\w.]*)(:?\n)', bygroups(Generic.Error, Text), '#pop') ], } |
