Commits

Georg Brandl committed 60c5111

#612: use better token types in python traceback lexers.

Comments (0)

Files changed (1)

pygments/lexers/agile.py

         ],
         '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)',
             (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')
         ],
     }
 
         ],
         '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')
         ],
     }