HEX
Server: LiteSpeed
System: Linux srv146.niagahoster.com 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
User: kodi1989 (1633)
PHP: 8.1.34
Disabled: symlink,shell_exec,exec,popen,system,dl,passthru,escapeshellarg,escapeshellcmd,show_source,pcntl_exec
Upload Files
File: //opt/alt/python37/lib/python3.7/site-packages/pygments/formatters/__pycache__/irc.cpython-37.pyc
B

��fQ�2@s&dZddlmZddlmZmZmZmZmZm	Z	m
Z
mZmZm
Z
ddlmZdgZede
dedejded	ejde
jd
ejdejdejdejd
ejdejdejdejdejdejdede	d	ejdejdej dej!dejdediZ"dddddddddddddd d d!d"d#d$d%�Z#d&d'�Z$Gd(d�de�Z%d)S)*z�
    pygments.formatters.irc
    ~~~~~~~~~~~~~~~~~~~~~~~

    Formatter for IRC output

    :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�)�	Formatter)
�Keyword�Name�Comment�String�Error�Number�Operator�Generic�Token�
Whitespace)�get_choice_opt�IRCFormatter)�r)�gray�brightblack)�cyan�
brightcyan)�blue�
brightblue)�magentar)�green�brightgreen)Z_cyan_Z_brightcyan_)Z_green_Z
_brightgreen_)rr)�red�	brightred)rr)�yellowr)rr)z**z**)z	*magenta*z*brightmagenta*)�_brightred_r���������	�
���
��)ZwhiteZblackrrrrrZorangerZbrightyellowZ
lightgreenrrZ	lightbluerrZ
brightmagentarrcCs�t|�dkr|Sd}}d|kr:|d7}d|}|�d�}d|kr\|d7}d|}|�d�}t|�dkr�|dtt|��d	�7}d|}|||S)
Nrr�_��*�r�r�<�>z</)�len�strip�str�
IRC_COLOR_MAP�zfill)�color�text�add�sub�r<�H/opt/alt/python37/lib/python3.7/site-packages/pygments/formatters/irc.py�	ircformatLs 

r>c@s8eZdZdZdZddgZgZdd�Zdd�Zdd	�Z	d
S)raS
    Format tokens with IRC color sequences

    The `get_style_defs()` method doesn't do anything special since there is
    no support for common styles.

    Options accepted:

    `bg`
        Set to ``"light"`` or ``"dark"`` depending on the terminal's background
        (default: ``"light"``).

    `colorscheme`
        A dictionary mapping token types to (lightbg, darkbg) color names or
        ``None`` (default: ``None`` = use builtin colorscheme).

    `linenos`
        Set to ``True`` to have line numbers in the output as well
        (default: ``False`` = no line numbers).
    ZIRCZirccKsPtj|f|�t|dddgd�dk|_|�dd�p4t|_|�dd�|_d|_dS)N�bg�lightZdark�colorscheme�linenosFr)	r�__init__r
�darkbg�get�
IRC_COLORSrArB�_lineno)�self�optionsr<r<r=rCzszIRCFormatter.__init__cCs(|jr$|jd7_|�d|j�dS)Nrz%04d: )rBrG�write)rH�outfiler<r<r=�
_write_lineno�szIRCFormatter._write_linenocCs�|�|�x�|D]�\}}|j�|�}x$|dkrH|dd�}|j�|�}q&W|r�||j}|�d�}x<|dd�D],}|r�|�t||��|�d�|�|�qpW|dr�|�t||d��q|�|�qWdS)N����
)rLrArErD�splitrJr>)rHZtokensourcerKZttype�valuer8Zspl�liner<r<r=�format_unencoded�s"




zIRCFormatter.format_unencodedN)
�__name__�
__module__�__qualname__�__doc__�name�aliases�	filenamesrCrLrRr<r<r<r=rasN)&rVZpygments.formatterrZpygments.tokenrrrrrrr	r
rrZ
pygments.utilr
�__all__ZPreproc�Type�WordZBuiltinZFunction�	NamespaceZClass�	ExceptionZ	Decorator�VariableZConstant�	Attribute�TagZDeletedZInsertedZHeadingZ
SubheadingrFr6r>rr<r<r<r=�<module>	sd0