diff options
author | mitsuhiko <devnull@localhost> | 2008-05-07 12:13:13 +0200 |
---|---|---|
committer | mitsuhiko <devnull@localhost> | 2008-05-07 12:13:13 +0200 |
commit | 78f23152429c3c09c7721c38a49d1df6c0ec4bc0 (patch) | |
tree | 0d1c6d4623dece0acdd5d331a68d186ff5c95712 | |
parent | e21198e0243d87ea5963d86700c94844216802ae (diff) | |
download | pygments-78f23152429c3c09c7721c38a49d1df6c0ec4bc0.tar.gz |
Fixed bug in pygments lexer that caused doctests to outdent the ellipsis in tracebacks
-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 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)', |