summaryrefslogtreecommitdiff
path: root/pygments
diff options
context:
space:
mode:
Diffstat (limited to 'pygments')
-rw-r--r--pygments/lexers/agile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/agile.py b/pygments/lexers/agile.py
index 0c64e74b..7199d405 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)',