https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/pygments/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/pygments/__pycache__/regexopt.cpython-310.pyc
o

���a�@sldZddlZddlmZddlmZddlmZddlmZe�	d�Z
ed�Zdd	�Zd
d�Z
dd
d�ZdS)a
    pygments.regexopt
    ~~~~~~~~~~~~~~~~~

    An algorithm that generates optimized regexes for matching long lists of
    literal strings.

    :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�escape)�commonprefix)�groupby)�
itemgetterz[\[\^\\\-\]]cCsdt�dd�d�|��dS)N�[cSsd|��S)N�\)�group)�m�r
�3/usr/lib/python3/dist-packages/pygments/regexopt.py�<lambda>szmake_charset.<locals>.<lambda>��])�	CS_ESCAPE�sub�join)�lettersr
r
r�make_charsetsrc		s�|rdpd}|s
dS|d�t|�dkr|t��|S�s-|t|dd�d�d|St��dkrlg}g}|D]}t|�dkrG|�|�q9|�|�q9t|�dkrl|rd|t|d�dt|�|S|t|�|St|�}|r�t|��|t|�t�fd	d
�|D�d�|Sdd
�|D�}t|�}|r�t|��|tt�fdd
�|D��d�t|ddd��|S|d�dd
�t|�fdd��D��|S)zEReturn a regex that matches any string in the sorted list of strings.�)r
r�Nz(?:�?�|csg|]}|�d��qS�Nr
��.0�s)�plenr
r�
<listcomp>?sz#regex_opt_inner.<locals>.<listcomp>cSsg|]	}|ddd��qS)N���r
rr
r
rrBsc3s�|]
}|d��VqdSrr
r)�slenr
r�	<genexpr>Hs�z"regex_opt_inner.<locals>.<genexpr>rcss"�|]}tt|d�d�VqdS)rr
N)�regex_opt_inner�list)rrr
r
rr Ms��cs|d�dkS)Nrr
)r)�firstr
rrNsz!regex_opt_inner.<locals>.<lambda>)	�lenrr!�appendrr�sortedrr)	�strings�
open_paren�close_paren�	oneletter�restr�prefix�strings_rev�suffixr
)r#rrrr!sj����
�����
���r!r
cCst|�}|t|d�|S)z�Return a compiled regex that matches any string in the given list.

    The strings to match must be literal strings, not regexes.  They will be
    regex-escaped.

    *prefix* and *suffix* are pre- and appended to the final regex.
    �()r&r!)r'r,r.r
r
r�	regex_optRsr0)r
r
)�__doc__�rer�os.pathr�	itertoolsr�operatorr�compiler�
FIRST_ELEMENTrr!r0r
r
r
r�<module>s
8

https://t.me/RX1948 - 2025