summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgbrandl <devnull@localhost>2007-02-13 23:19:51 +0100
committergbrandl <devnull@localhost>2007-02-13 23:19:51 +0100
commit4ab64f4d8b587cb3d8a0db52ebc55d4f655149c7 (patch)
treeb067fc52e93638a8a1913ec7b99858c38d726efe
parentcd80a43b2f0528b9a6cee20e558bee0566cc30cf (diff)
downloadpygments-4ab64f4d8b587cb3d8a0db52ebc55d4f655149c7.tar.gz
[svn] Allow Python traceback lexer for doctests.
-rw-r--r--pygments/lexers/agile.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pygments/lexers/agile.py b/pygments/lexers/agile.py
index 23c8f2b6..b8b737ca 100644
--- a/pygments/lexers/agile.py
+++ b/pygments/lexers/agile.py
@@ -238,6 +238,8 @@ class PythonTracebackLexer(RegexLexer):
bygroups(Text, Name.Builtin, Text, Number, Text, Name.Identifier, Text)),
(r'^( )(.+)(\n)',
bygroups(Text, using(PythonLexer), Text)),
+ (r'^(...)(\n)',
+ bygroups(Comment, Text), '#pop'), # for doctests...
(r'^(.+)(: )(.+)(\n)',
bygroups(Name.Class, Text, Name.Identifier, Text), '#pop'),
],