Module Expr Str Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias Assign NameStore BinOpAdd ListLoad Str Str Str Str Call AttributeLoad NameLoad attr Assign NameStore Dict FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad NameLoad NameLoad ListLoad Str For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str For NameStore Call AttributeLoad NameLoad attr body Expr Yield SubscriptLoad NameLoad Slice Num For NameStore Call NameLoad body Expr Yield TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIn NameLoad NameLoad body Return SubscriptLoad NameLoad Index NameLoad For TupleStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareEq NameLoad NameLoad body Expr Call NameLoad NameLoad Return SubscriptLoad NameLoad Index NameLoad For NameStore Call NameLoad body If CompareEq AttributeLoad NameLoad attr NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str For TupleStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body If CompareNotIn NameLoad NameLoad body Expr Call NameLoad NameLoad Return Call SubscriptLoad NameLoad Index NameLoad NameLoad For NameStore Call NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Return Call NameLoad NameLoad Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Expr Str Assign NameStore ListLoad Assign NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr body For NameStore NameLoad body If Call AttributeLoad NameLoad attr NameLoad NameLoad body If CompareNotIn NameLoad NameLoad body Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad NameLoad Index NameLoad NameLoad For NameStore Call NameLoad body For NameStore AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad If BoolOpAnd CompareGt AttributeLoad NameLoad attr TupleLoad Num Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameLoad Assign NameStore BoolOpOr BoolOpAnd CompareNotIn Str NameLoad Num Num If NameLoad body Return BinOpAdd Call AttributeLoad NameLoad attr NameLoad NameLoad Return BinOpAdd AttributeLoad NameLoad attr NameLoad decorator_list If NameLoad body Expr Call AttributeLoad NameLoad attr keyword NameLoad Return Call SubscriptLoad SubscriptLoad NameLoad Index Num Index Num NameLoad Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str For TupleStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body If CompareNotIn NameLoad NameLoad body Expr Call NameLoad NameLoad Return Call SubscriptLoad NameLoad Index NameLoad NameLoad For NameStore Call NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Return Call NameLoad NameLoad Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args defaults body Expr Str For NameStore Call NameLoad NameLoad body Assign TupleStore NameStore NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Slice Num If CompareNotIn NameLoad NameLoad body Expr Call NameLoad NameLoad Expr Yield SubscriptLoad NameLoad Index NameLoad For NameStore Call NameLoad body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore NameLoad Assign NameStore Call NameLoad For NameStore Call NameLoad body For NameStore AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad For NameStore AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad BinOpMod Str NameLoad If CompareEq Call NameLoad NameLoad Num body Return Call Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Num body Return Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return TupleLoad SubscriptLoad NameLoad Index Num AttributeLoad SubscriptLoad NameLoad Index Num attr decorator_list Expr Call AttributeLoad NameLoad attr keyword NameLoad If BoolOpAnd UnaryOpNot SubscriptLoad SubscriptLoad NameLoad Index Num Index Num CompareIsNot NameLoad NameLoad body Return Call NameLoad NameLoad Return Call SubscriptLoad SubscriptLoad NameLoad Index Num Index Num NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Call NameLoad NameLoad If CompareIsNot NameLoad NameLoad body TryExcept body Return Call NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass Assign NameStore ListLoad Num NameLoad For NameStore Call NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Num body Return Call NameLoad NameLoad If CompareGt NameLoad SubscriptLoad NameLoad Index Num body Assign SubscriptStore NameLoad Slice TupleLoad NameLoad NameLoad If BoolOpOr UnaryOpNot SubscriptLoad NameLoad Index Num CompareIs SubscriptLoad NameLoad Index Num NameLoad body Raise Call NameLoad Str Return Call SubscriptLoad NameLoad Index Num NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num Expr Call NameLoad NameLoad NameLoad NameLoad Return NameLoad Raise Call NameLoad NameLoad decorator_list decorator_list Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Delete AttributeDel NameLoad attr AttributeDel NameLoad attr AttributeDel NameLoad attr AttributeDel NameLoad attr
N/A N/A 
    pygments.lexers
    ~~~~~~~~~~~~~~~

    Pygments lexers.

    :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
 N/A sys N/A types N/A fnmatch os.path basename pygments.lexers._mapping LEXERS pygments.modeline get_filetype_from_buffer pygments.plugin find_plugin_lexers pygments.util ClassNotFound bytes N/A __all__ N/A N/A get_lexer_by_name get_lexer_for_filename find_lexer_class guess_lexer N/A N/A LEXERS keys N/A _lexer_cache N/A _load_lexers N/A N/A module_name N/A N/A N/A 
    Load a lexer (and all others in the module too).
     N/A mod N/A __import__ module_name None None N/A __all__ N/A lexer_name N/A mod __all__ N/A N/A cls N/A getattr mod lexer_name N/A N/A _lexer_cache N/A N/A cls name cls N/A get_all_lexers N/A N/A N/A N/A N/A 
    Return a generator of tuples in the form ``(name, aliases,
    filenames, mimetypes)`` of all know lexers.
     N/A item N/A N/A LEXERS itervalues N/A N/A N/A N/A item N/A 1 N/A lexer N/A find_plugin_lexers N/A N/A N/A N/A N/A lexer name N/A lexer aliases N/A lexer filenames N/A lexer mimetypes N/A find_lexer_class N/A N/A name N/A N/A N/A 
    Lookup a lexer class by name. Return None if not found.
     N/A N/A name _lexer_cache N/A N/A N/A _lexer_cache N/A name N/A N/A module_name lname aliases _ _ N/A N/A LEXERS itervalues N/A N/A N/A name lname N/A N/A N/A _load_lexers module_name N/A N/A _lexer_cache N/A name N/A cls N/A find_plugin_lexers N/A N/A N/A N/A cls name name N/A N/A cls N/A get_lexer_by_name N/A N/A _alias N/A options N/A N/A 
    Get a lexer by an alias.
     N/A N/A module_name name aliases _ _ N/A N/A LEXERS itervalues N/A N/A N/A _alias aliases N/A N/A N/A name _lexer_cache N/A N/A N/A _load_lexers module_name N/A N/A N/A _lexer_cache N/A name options N/A cls N/A find_plugin_lexers N/A N/A N/A _alias N/A cls aliases N/A N/A N/A cls options N/A N/A ClassNotFound N/A no lexer for alias %r found _alias N/A get_lexer_for_filename N/A N/A _fn code N/A None options N/A N/A 
    Get a lexer for a filename.  If multiple lexers match the filename
    pattern, use ``analyze_text()`` to figure out which one is more
    appropriate.
     N/A matches N/A N/A fn N/A basename _fn N/A N/A modname name _ filenames _ N/A N/A LEXERS itervalues N/A N/A filename filenames N/A N/A N/A N/A fnmatch fnmatch fn filename N/A N/A N/A name _lexer_cache N/A N/A N/A _load_lexers modname N/A N/A N/A matches append N/A N/A _lexer_cache N/A name filename N/A cls N/A find_plugin_lexers N/A N/A filename N/A cls filenames N/A N/A N/A N/A fnmatch fnmatch fn filename N/A N/A N/A N/A matches append N/A cls filename N/A N/A N/A N/A sys version_info N/A 3 N/A isinstance code bytes N/A N/A code N/A N/A code decode latin1 get_rating N/A N/A info N/A N/A N/A N/A cls filename info N/A bonus N/A N/A N/A * filename 0.5 0 N/A code N/A N/A N/A N/A N/A cls analyse_text code bonus N/A N/A N/A cls priority bonus N/A N/A matches N/A N/A N/A N/A matches sort key get_rating N/A N/A N/A N/A matches N/A -1 N/A 0 options N/A N/A ClassNotFound N/A no lexer for filename %r found _fn N/A get_lexer_for_mimetype N/A N/A _mime N/A options N/A N/A 
    Get a lexer for a mimetype.
     N/A N/A modname name _ _ mimetypes N/A N/A LEXERS itervalues N/A N/A N/A _mime mimetypes N/A N/A N/A name _lexer_cache N/A N/A N/A _load_lexers modname N/A N/A N/A _lexer_cache N/A name options N/A cls N/A find_plugin_lexers N/A N/A N/A _mime N/A cls mimetypes N/A N/A N/A cls options N/A N/A ClassNotFound N/A no lexer for mimetype %r found _mime N/A _iter_lexerclasses N/A N/A N/A N/A N/A 
    Return an iterator over all lexer classes.
     N/A key N/A sorted LEXERS N/A N/A N/A module_name name N/A N/A LEXERS N/A key N/A 2 N/A N/A name _lexer_cache N/A N/A N/A _load_lexers module_name N/A N/A N/A _lexer_cache N/A name N/A lexer N/A find_plugin_lexers N/A N/A N/A lexer N/A guess_lexer_for_filename N/A N/A _fn _text N/A options N/A N/A 
    Lookup all lexers that handle those filenames primary (``filenames``)
    or secondary (``alias_filenames``). Then run a text analysis for those
    lexers and choose the best result.

    usage::

        >>> from pygments.lexers import guess_lexer_for_filename
        >>> guess_lexer_for_filename('hello.html', '<%= @foo %>')
        <pygments.lexers.templates.RhtmlLexer object at 0xb7d2f32c>
        >>> guess_lexer_for_filename('hello.html', '<h1>{{ title|e }}</h1>')
        <pygments.lexers.templates.HtmlDjangoLexer object at 0xb7d2f2ac>
        >>> guess_lexer_for_filename('style.css', 'a { color: <?= $link ?> }')
        <pygments.lexers.templates.CssPhpLexer object at 0xb7ba518c>
     N/A fn N/A basename _fn N/A primary None N/A matching_lexers N/A set N/A lexer N/A _iter_lexerclasses N/A N/A filename N/A lexer filenames N/A N/A N/A N/A fnmatch fnmatch fn filename N/A N/A N/A N/A matching_lexers add lexer N/A primary lexer N/A filename N/A lexer alias_filenames N/A N/A N/A N/A fnmatch fnmatch fn filename N/A N/A N/A N/A matching_lexers add lexer N/A N/A matching_lexers N/A N/A N/A ClassNotFound N/A no lexer for filename %r found fn N/A N/A N/A len matching_lexers 1 N/A N/A N/A N/A N/A matching_lexers pop options N/A result N/A N/A lexer matching_lexers N/A N/A rv N/A N/A lexer analyse_text _text N/A N/A rv 1.0 N/A N/A N/A lexer options N/A N/A N/A result append N/A rv lexer type_sort N/A N/A type_ N/A N/A N/A N/A N/A type_ N/A 0 N/A N/A type_ N/A 1 __name__ N/A N/A N/A N/A result sort key type_sort N/A N/A N/A N/A N/A result N/A -1 N/A 0 N/A primary None N/A N/A N/A primary options N/A N/A N/A N/A result N/A -1 N/A 1 options N/A guess_lexer N/A N/A _text N/A options N/A N/A 
    Guess a lexer by strong distinctions in the text (eg, shebang).
     N/A ft N/A get_filetype_from_buffer _text N/A N/A ft None N/A N/A N/A N/A N/A get_lexer_by_name ft options N/A N/A N/A ClassNotFound N/A N/A N/A best_lexer N/A 0.0 None N/A lexer N/A _iter_lexerclasses N/A N/A rv N/A N/A lexer analyse_text _text N/A N/A rv 1.0 N/A N/A N/A lexer options N/A N/A rv N/A best_lexer N/A 0 N/A N/A N/A best_lexer N/A N/A rv lexer N/A N/A N/A N/A best_lexer N/A 0 N/A N/A best_lexer N/A 1 None N/A N/A N/A ClassNotFound no lexer matching the text found N/A N/A N/A best_lexer N/A 1 options N/A _automodule N/A N/A types ModuleType N/A N/A Automatically import lexers. __getattr__ N/A N/A self name N/A N/A N/A info N/A N/A LEXERS get name N/A info N/A N/A N/A _load_lexers N/A info N/A 0 N/A cls N/A _lexer_cache N/A N/A info N/A 1 N/A N/A setattr self name cls N/A cls N/A N/A AttributeError name N/A N/A N/A oldmod N/A N/A sys modules N/A pygments.lexers N/A newmod N/A _automodule pygments.lexers N/A N/A N/A N/A newmod __dict__ update N/A oldmod __dict__ N/A N/A N/A sys modules N/A pygments.lexers newmod N/A N/A newmod newmod N/A newmod oldmod N/A newmod sys N/A newmod types