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

Static Public Attributes

str name = 'Python console session'
 
list aliases = ['pycon']
 
list mimetypes = ['text/x-python-doctest']
 
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
 

Member Data Documentation

◆ tokens

dict pip._vendor.pygments.lexers.python._PythonConsoleLexerBase.tokens
static
Initial value:
= {
'root': [
(r'(>>> )(.*\n)', bygroups(Generic.Prompt, Other.Code), 'continuations'),
# This happens, e.g., when tracebacks are embedded in documentation;
# trailing whitespaces are often stripped in such contexts.
(r'(>>>)(\n)', bygroups(Generic.Prompt, Whitespace)),
(r'(\^C)?Traceback \‍(most recent call last\‍):\n', Other.Traceback, 'traceback'),
# SyntaxError starts with this
(r' File "[^"]+", line \d+', Other.Traceback, 'traceback'),
(r'.*\n', Generic.Output),
],
'continuations': [
(r'(\.\.\. )(.*\n)', bygroups(Generic.Prompt, Other.Code)),
# See above.
(r'(\.\.\.)(\n)', bygroups(Generic.Prompt, Whitespace)),
default('#pop'),
],
'traceback': [
# As soon as we see a traceback, consume everything until the next
# >>> prompt.
(r'(?=>>>( |$))', Text, '#pop'),
(r'(KeyboardInterrupt)(\n)', bygroups(Name.Class, Whitespace)),
(r'.*\n', Other.Traceback),
],
}

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