def style_factory(self, style_name):
try:<EOL><INDENT>style = get_style_by_name(style_name)<EOL><DEDENT>except ClassNotFound:<EOL><INDENT>style = get_style_by_name('<STR_LIT>')<EOL><DEDENT>styles = {}<EOL>styles.update(style.styles)<EOL>styles.update(default_style_extensions)<EOL>t = Token<EOL>styles.update({<EOL>t.Menu.Completions.Completion.Current: '<STR_LIT>',<EOL>t.Menu.Completions.Completion: '<STR_LIT>',<EOL>t.Menu.Completions.Meta.Current: '<STR_LIT>',<EOL>t.Menu.Completions.Meta: '<STR_LIT>',<EOL>t.Scrollbar.Button: '<STR_LIT>',<EOL>t.Scrollbar: '<STR_LIT>',<EOL>t.Toolbar: '<STR_LIT>',<EOL>t.Toolbar.Off: '<STR_LIT>',<EOL>t.Toolbar.On: '<STR_LIT>',<EOL>t.Toolbar.Search: '<STR_LIT>',<EOL>t.Toolbar.Search.Text: '<STR_LIT>',<EOL>t.Toolbar.System: '<STR_LIT>',<EOL>t.Toolbar.Arg: '<STR_LIT>',<EOL>t.Toolbar.Arg.Text: '<STR_LIT>'<EOL>})<EOL>return style_from_dict(styles)<EOL>
Retrieve the specified pygments style.

        If the specified style is not found, the vim style is returned.

        :type style_name: str
        :param style_name: The pygments style name.

        :rtype: :class:`pygments.style.StyleMeta`
        :return: Pygments style info.