%PDF- %PDF-
Direktori : /lib/python3/dist-packages/reportlab/lib/__pycache__/ |
Current File : //lib/python3/dist-packages/reportlab/lib/__pycache__/PyFontify.cpython-312.pyc |
� ��dl � � � d Z dZdZ ddlZd� Zg d�ZdZdZ eed d � dz eed d� z Zd Zdj ej � � Z eed d � dz eed d� z Z dZedz dj e� z dz ez Zedz ez dz e z dz ez Z ej e � ZdZ ej e� 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 | � }t j }t j }g }|j }d}d}d} d} d}|} || |� } | � |S | j � }||k\ r |S | j d� }|t |� z }|d }|dvrv||k7 r|dd }|dz }n|d d }|dz } || ||d f� |d v rj || |� } | �_| j � }||k( rJ| j d� }|t |� z } || ||d f� n|d k( r ||||d f� n ||||d f� ��)N�comment�string�keyword� identifierr � z#'"���)r&