summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-11-26 10:42:29 +0100
committerGeorg Brandl <georg@python.org>2010-11-26 10:42:29 +0100
commit5350e14fb69d59a55b31f6009208d84d4026ac54 (patch)
treecc6049eae6827bbe005cdb3bb632a4ffb1e1e083
parentb85ae84a2ef3618976d51c953eaebc8f796c816e (diff)
downloadpygments-5350e14fb69d59a55b31f6009208d84d4026ac54.tar.gz
#612: use better token types in python traceback lexers.
-rw-r--r--pygments/lexers/agile.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/pygments/lexers/agile.py b/pygments/lexers/agile.py
index 817355a7..de93eb1e 100644
--- a/pygments/lexers/agile.py
+++ b/pygments/lexers/agile.py
@@ -371,7 +371,7 @@ class PythonTracebackLexer(RegexLexer):
],
'intb': [
(r'^( File )("[^"]+")(, line )(\d+)(, in )(.+)(\n)',
- bygroups(Text, Name.Builtin, Text, Number, Text, Name.Identifier, Text)),
+ bygroups(Text, Name.Builtin, Text, Number, Text, Name, Text)),
(r'^( File )("[^"]+")(, line )(\d+)(\n)',
bygroups(Text, Name.Builtin, Text, Number, Text)),
(r'^( )(.+)(\n)',
@@ -379,9 +379,9 @@ class PythonTracebackLexer(RegexLexer):
(r'^([ \t]*)(...)(\n)',
bygroups(Text, Comment, Text)), # for doctests...
(r'^(.+)(: )(.+)(\n)',
- bygroups(Name.Class, Text, Name.Identifier, Text), '#pop'),
+ bygroups(Generic.Error, Text, Name, Text), '#pop'),
(r'^([a-zA-Z_][a-zA-Z0-9_]*)(:?\n)',
- bygroups(Name.Class, Text), '#pop')
+ bygroups(Generic.Error, Text), '#pop')
],
}
@@ -409,15 +409,15 @@ class Python3TracebackLexer(RegexLexer):
],
'intb': [
(r'^( File )("[^"]+")(, line )(\d+)(, in )(.+)(\n)',
- bygroups(Text, Name.Builtin, Text, Number, Text, Name.Identifier, Text)),
+ bygroups(Text, Name.Builtin, Text, Number, Text, Name, Text)),
(r'^( )(.+)(\n)',
bygroups(Text, using(Python3Lexer), Text)),
(r'^([ \t]*)(...)(\n)',
bygroups(Text, Comment, Text)), # for doctests...
(r'^(.+)(: )(.+)(\n)',
- bygroups(Name.Class, Text, Name.Identifier, Text), '#pop'),
+ bygroups(Generic.Error, Text, Name, Text), '#pop'),
(r'^([a-zA-Z_][a-zA-Z0-9_]*)(:?\n)',
- bygroups(Name.Class, Text), '#pop')
+ bygroups(Generic.Error, Text), '#pop')
],
}