diff options
-rw-r--r-- | pygments/lexers/agile.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/agile.py b/pygments/lexers/agile.py index b4860e18..30779ebd 100644 --- a/pygments/lexers/agile.py +++ b/pygments/lexers/agile.py @@ -354,8 +354,8 @@ class PythonTracebackLexer(RegexLexer): bygroups(Text, Name.Builtin, Text, Number, Text, Name.Identifier, Text)), (r'^( )(.+)(\n)', bygroups(Text, using(PythonLexer), Text)), - (r'^[ \t]*(...)(\n)', - bygroups(Comment, Text)), # for doctests... + (r'^([ \t]*)(...)(\n)', + bygroups(Text, Comment, Text)), # for doctests... (r'^(.+)(: )(.+)(\n)', bygroups(Name.Class, Text, Name.Identifier, Text), '#pop'), (r'^([a-zA-Z_][a-zA-Z0-9_]*)(:?\n)', |