Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Static Public Attributes | List of all members
pip._vendor.pygments.lexers.python.Python2TracebackLexer Class Reference
Inheritance diagram for pip._vendor.pygments.lexers.python.Python2TracebackLexer:
Inheritance graph
[legend]
Collaboration diagram for pip._vendor.pygments.lexers.python.Python2TracebackLexer:
Collaboration graph
[legend]

Static Public Attributes

str name = 'Python 2.x Traceback'
 
list aliases = ['py2tb']
 
list filenames = ['*.py2tb']
 
list mimetypes = ['text/x-python2-traceback']
 
dict tokens
 
- Static Public Attributes inherited from pip._vendor.pygments.lexer.RegexLexer
 flags = re.MULTILINE
 
dict tokens = {}
 
- Static Public Attributes inherited from pip._vendor.pygments.lexer.Lexer
 name = None
 
list aliases = []
 
list filenames = []
 
list alias_filenames = []
 
list mimetypes = []
 
int priority = 0
 
 url = None
 

Additional Inherited Members

- Public Member Functions inherited from pip._vendor.pygments.lexer.RegexLexer
 get_tokens_unprocessed (self, text, stack=('root',))
 
- Public Member Functions inherited from pip._vendor.pygments.lexer.Lexer
 __init__ (self, **options)
 
 __repr__ (self)
 
 add_filter (self, filter_, **options)
 
 analyse_text (text)
 
 get_tokens (self, text, unfiltered=False)
 
- Public Member Functions inherited from pip._vendor.pygments.lexer.LexerMeta
 __new__ (mcs, name, bases, d)
 
- Public Member Functions inherited from pip._vendor.pygments.lexer.RegexLexerMeta
 process_tokendef (cls, name, tokendefs=None)
 
 get_tokendefs (cls)
 
 __call__ (cls, *args, **kwds)
 
- Public Attributes inherited from pip._vendor.pygments.lexer.Lexer
 options
 
 stripnl
 
 stripall
 
 ensurenl
 
 tabsize
 
 encoding
 
 filters
 
- Protected Member Functions inherited from pip._vendor.pygments.lexer.RegexLexerMeta
 _process_regex (cls, regex, rflags, state)
 
 _process_token (cls, token)
 
 _process_new_state (cls, new_state, unprocessed, processed)
 
 _process_state (cls, unprocessed, processed, state)
 
- Protected Attributes inherited from pip._vendor.pygments.lexer.RegexLexerMeta
 _all_tokens
 
 _tmpname
 
 _tokens
 

Detailed Description

For Python tracebacks.

.. versionadded:: 0.7

.. versionchanged:: 2.5
   This class has been renamed from ``PythonTracebackLexer``.
   ``PythonTracebackLexer`` now refers to the Python 3 variant.

Member Data Documentation

◆ tokens

dict pip._vendor.pygments.lexers.python.Python2TracebackLexer.tokens
static
Initial value:
= {
'root': [
# Cover both (most recent call last) and (innermost last)
# The optional ^C allows us to catch keyboard interrupt signals.
(r'^(\^C)?(Traceback.*\n)',
bygroups(Text, Generic.Traceback), 'intb'),
# SyntaxError starts with this.
(r'^(?= File "[^"]+", line \d+)', Generic.Traceback, 'intb'),
(r'^.*\n', Other),
],
'intb': [
(r'^( File )("[^"]+")(, line )(\d+)(, in )(.+)(\n)',
bygroups(Text, Name.Builtin, Text, Number, Text, Name, Whitespace)),
(r'^( File )("[^"]+")(, line )(\d+)(\n)',
bygroups(Text, Name.Builtin, Text, Number, Whitespace)),
(r'^( )(.+)(\n)',
bygroups(Text, using(Python2Lexer), Whitespace), 'marker'),
(r'^([ \t]*)(\.\.\.)(\n)',
bygroups(Text, Comment, Whitespace)), # for doctests...
(r'^([^:]+)(: )(.+)(\n)',
bygroups(Generic.Error, Text, Name, Whitespace), '#pop'),
(r'^([a-zA-Z_]\w*)(:?\n)',
bygroups(Generic.Error, Whitespace), '#pop')
],
'marker': [
# For syntax errors.
(r'( {4,})(\^)', bygroups(Text, Punctuation.Marker), '#pop'),
default('#pop'),
],
}

The documentation for this class was generated from the following file: