https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /lib64/python2.7/site-packages/django/utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/django/utils/jslex.pyc
�
r�\c@spdZddlZdefd��YZddd�Zdefd��YZd	efd
��YZd�ZdS(sJsLex: a lexer for Javascripti����NtTokcBs eZdZdZdd�ZRS(s,
    A specification for a token class.
    icCs:tj|_tjd7_||_||_||_dS(Ni(Rtnumtidtnametregextnext(tselfRRR((s4/tmp/pip-install-XxeQeY/django/django/utils/jslex.pyt__init__s
		N(t__name__t
__module__t__doc__RtNoneR(((s4/tmp/pip-install-XxeQeY/django/django/utils/jslex.pyRstcs&dj��fd�|j�D��S(s�
    Create a regex from a space-separated list of literal `choices`.

    If provided, `prefix` and `suffix` will be attached to each choice
    individually.

    t|c3s&|]}�tj|��VqdS(N(tretescape(t.0tc(tprefixtsuffix(s4/tmp/pip-install-XxeQeY/django/django/utils/jslex.pys	<genexpr>s(tjointsplit(tchoicesRR((RRs4/tmp/pip-install-XxeQeY/django/django/utils/jslex.pytliteralsstLexercBs eZdZd�Zd�ZRS(s2
    A generic multi-state regex-based lexer.
    cCs�i|_i|_x�|j�D]�\}}g}xB|D]:}d|j}||j|<|jd||jf�q8Wtjdj|�tj	tj
B�|j|<qW||_dS(Nst%ds
(?P<%s>%s)R
(tregexesttokstitemsRtappendRRtcompileRt	MULTILINEtVERBOSEtstate(RtstatestfirstR trulestpartsttoktgroupid((s4/tmp/pip-install-XxeQeY/django/django/utils/jslex.pyR"s		


0ccs�t|�}|j}|j}|j}d}x�||kr�xt||j||�D]\}|j}||}	|j|�}
|t|
�7}|	j|
fV|	jrS|	j}PqSqSWq0W||_dS(sX
        Lexically analyze `text`.

        Yields pairs (`name`, `tokentext`).
        iN(	tlenR RRtfinditert	lastgrouptgroupRR(RttexttendR RRtstarttmatchRR%ttoktext((s4/tmp/pip-install-XxeQeY/django/django/utils/jslex.pytlex0s 				
		(RR	R
RR0(((s4/tmp/pip-install-XxeQeY/django/django/utils/jslex.pyRs	tJsLexercBs�eZdZedd�edd�edd�ededd	d
�dd�ed
edd	d
�dd�edddd�edddd�edd�edddd�eded�dd�eded�dd�eded�dd�edddd�edddd�gZedd �gZieeded!�dd�ged6eed"d#dd�ged6Zd$�ZRS(%s�
    A Javascript lexer

    >>> lexer = JsLexer()
    >>> list(lexer.lex("a = 1"))
    [('id', 'a'), ('ws', ' '), ('punct', '='), ('ws', ' '), ('dnum', '1')]

    This doesn't properly handle non-Ascii characters in the Javascript source.
    tcomments/\*(.|\n)*?\*/tlinecomments//.*?$twss\s+tkeywords�
                                break case catch class const continue debugger
                                default delete do else enum export extends
                                finally for function if import in instanceof
                                new return super switch this throw try typeof
                                var void while with
                                Rs\bRtregtreservedsnull true falsetdivRs�
                            ([a-zA-Z_$   ]|\\u[0-9a-fA-Z]{4})   # first char
                            ([a-zA-Z_$0-9]|\\u[0-9a-fA-F]{4})*  # rest chars
                            thnums0[xX][0-9a-fA-F]+tonums0[0-7]+tdnums�
                            (   (0|[1-9][0-9]*)     # DecimalIntegerLiteral
                                \.                  # dot
                                [0-9]*              # DecimalDigits-opt
                                ([eE][-+]?[0-9]+)?  # ExponentPart-opt
                            |
                                \.                  # dot
                                [0-9]+              # DecimalDigits
                                ([eE][-+]?[0-9]+)?  # ExponentPart-opt
                            |
                                (0|[1-9][0-9]*)     # DecimalIntegerLiteral
                                ([eE][-+]?[0-9]+)?  # ExponentPart-opt
                            )
                            tpuncts�
                                >>>= === !== >>> <<= >>= <= >= == != << >> &&
                                || += -= *= %= &= |= ^=
                                s	++ -- ) ]s){ } ( [ . ; , < > + - * % & | ^ ! ~ ? : =tstrings"([^"\\]|(\\(.|\n)))*?"s'([^'\\]|(\\(.|\n)))*?'tothert.s/= /Rs�
                    /                       # opening slash
                    # First character is..
                    (   [^*\\/[]            # anything but * \ / or [
                    |   \\.                 # or an escape sequence
                    |   \[                  # or a class, which has
                            (   [^\]\\]     #   anything but \ or ]
                            |   \\.         #   or an escape sequence
                            )*              #   many times
                        \]
                    )
                    # Following characters are same, except for excluding a star
                    (   [^\\/[]             # anything but \ / or [
                    |   \\.                 # or an escape sequence
                    |   \[                  # or a class, which has
                            (   [^\]\\]     #   anything but \ or ]
                            |   \\.         #   or an escape sequence
                            )*              #   many times
                        \]
                    )*                      # many times
                    /                       # closing slash
                    [a-zA-Z0-9]*            # trailing flags
                cCs tt|�j|jd�dS(NR6(tsuperR1RR!(R((s4/tmp/pip-install-XxeQeY/django/django/utils/jslex.pyR�s(	RR	R
RRtboth_beforet
both_afterR!R(((s4/tmp/pip-install-XxeQeY/django/django/utils/jslex.pyR1Ks0		
	'$cCs�d�}t�}g}x�|j|�D]�\}}|dkrId}nl|dkr�|jd�r�tjd||dd!�}d	|d	}q�n!|d
kr�|jdd�}n|j|�q(Wd
j|�S(s�
    Convert the Javascript source `js` into something resembling C for
    xgettext.

    What actually happens is that all the regex literals are replaced with
    "REGEX".
    cSs'|jd�}|dkrdS|SdS(s1Used in a regex to properly escape double quotes.it"s\"N(R*(tmts((s4/tmp/pip-install-XxeQeY/django/django/utils/jslex.pyt
escape_quotes�sRs"REGEX"R=t's\\.|.ii����RCRs\tUR(R1R0t
startswithRtsubtreplaceRR(tjsRFtlexerRRR%tguts((s4/tmp/pip-install-XxeQeY/django/django/utils/jslex.pytprepare_js_for_gettext�s			(R
RtobjectRRRR1RO(((s4/tmp/pip-install-XxeQeY/django/django/utils/jslex.pyt<module>s
.m

https://t.me/AnonymousX5 - 2025