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/lexers/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

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

���a1�@s�dZddlZddlmZmZmZmZmZmZm	Z	m
Z
mZddlm
Z
mZmZmZmZmZmZmZmZmZddlmZmZmZgd�Ze�d�ZGdd	�d	e�ZGd
d�de�ZGdd
�d
e�Z dS)z�
    pygments.lexers.php
    ~~~~~~~~~~~~~~~~~~~

    Lexers for PHP and related languages.

    :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)	�Lexer�
RegexLexer�include�bygroups�default�using�this�words�
do_insertions)
�Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�Other�Generic)�get_bool_opt�get_list_opt�shebang_matches)�ZephirLexer�PsyshConsoleLexer�PhpLexerz.*?
c@seZdZdZdZdgZdgZgd�Zgd�Ze	j
e	jBZde
fdejfd	ejfged
�dejdfd
edfed�gde
dfgde
dfed
�dedfdedfdefdedfdejdfdejfdejfdejfdejfdejfdej fdej!fdej"fdejfgd�Z#d S)!rz�
    For `Zephir language <http://zephir-lang.com/>`_ source code.

    Zephir is a compiled high level language aimed
    to the creation of C-extensions for PHP.

    .. versionadded:: 2.0
    �Zephir�zephirz*.zep)�fetch�echo�isset�empty)�bit�bits�string�\s+�//.*?\n�	/\*.*?\*/�commentsandwhitespacez3/(\\.|[^[/\\\n]|\[(\\.|[^\]\\\n])*])+/([gim]+\b|\B)�#pop�/z\nz	^(?=\s|/)�slashstartsregexzC\+\+|--|~|&&|\?|:|\|\||\\(?=\n)|(<<|>>>?|==?|!=?|->|[-<>+*%&|^/])=?z[{(\[;,]z[})\].]z�(for|in|while|do|break|return|continue|switch|case|default|if|else|loop|require|inline|throw|try|catch|finally|new|delete|typeof|instanceof|void|namespace|use|extends|this|fetch|isset|unset|echo|fetch|likely|unlikely|empty)\bz(var|let|with|function)\bz�(abstract|boolean|bool|char|class|const|double|enum|export|extends|final|native|goto|implements|import|int|string|interface|long|ulong|char|uchar|float|unsigned|private|protected|public|short|static|self|throws|reverse|transient|volatile)\bz(true|false|null|undefined)\bzm(Array|Boolean|Date|_REQUEST|_COOKIE|_SESSION|_GET|_POST|_SERVER|this|stdClass|range|count|iterator|window)\bz[$a-zA-Z_][\w\\]*z%[0-9][0-9]*\.[0-9]+([eE][0-9]+)?[fd]?z0x[0-9a-fA-F]+z[0-9]+z"(\\\\|\\[^\\]|[^"\\])*"z'(\\\\|\\[^\\]|[^'\\])*')r'r*�badregex�rootN)$�__name__�
__module__�__qualname__�__doc__�name�aliases�	filenames�zephir_keywords�zephir_type�re�DOTALL�	MULTILINE�flagsrr�Single�	Multilinerr�Regexr
rrr�Declaration�Reserved�Constantr�Builtinrr�Float�Hex�Integer�Double�tokens�rFrF�5/usr/lib/python3/dist-packages/pygments/lexers/php.pyrs^	������
���
�rc@s*eZdZdZdZdgZdd�Zdd�ZdS)	ruZ
    For `PsySH`_ console output, such as:

    .. sourcecode:: psysh

        >>> $greeting = function($name): string {
        ...     return "Hello, {$name}";
        ... };
        => Closure($name): string {#2371 …3}
        >>> $greeting('World')
        => "Hello, World"

    .. _PsySH: https://psysh.org/
    .. versionadded:: 2.7
    zPsySH console session for PHP�psyshcKsd|d<tj|fi|��dS)NT�startinline)r�__init__)�self�optionsrFrFrGrJlszPsyshConsoleLexer.__init__c	cs�tdi|j��}d}g}t�|�D]b}|��}|�d�s"|�d�r=|�t|�dtj	|dd�fgf�||dd�7}q|�
�dkrZ|�t|�dtj	dfgf�||dd�7}q|rkt||�|��EdHd}g}|�
�tj|fVq|r�t||�|��EdHdSdS)	N�z>>> z... r�z...�rF)rrL�line_re�finditer�group�
startswith�append�lenr�Prompt�rstripr
�get_tokens_unprocessed�start�Output)rK�text�phplexer�curcode�
insertions�match�linerFrFrGrXps8�
�
�

���z(PsyshConsoleLexer.get_tokens_unprocessedN)r-r.r/r0r1r2rJrXrFrFrFrGrYsrc@s�eZdZdZdZgd�Zgd�ZdgZdZdZ	ded	Z
e	e
Zej
ejBejBZd
ejdfdefd
efggdejdf�dedeeeejeejee�f�def�dejf�dejf�dejf�dejf�dejf�dedeeeej�f�def�def�def�deee�df�deee�f�d eeeee�d!f�d"edeeeej �f�d#ef�d$ej f�e!d%��d&ed'ej"f�d(eej"f�eejf�d)e#j$f�d*e#j$f�d+e#j%f�d,e#j&f�d-e#j'f�d.e#j(f�d/ejf�d0ej)f�d1ej*d2f�e+d3d4d5�ej,j-fge+d6d4d5�ej fgeej.dfge!d7�eej,dfe/d�gd1ej*dfd8ej*fd9ej0fd:ed;ed<ej1fd=eej1e2e3d>d?�ej1�fd@eej1e2e3d>d?�ej1�fdAeej1ej"ej1�fdBej*fgdC�Z4dDdE�Z5dFdG�Z6dHdI�Z7dJS)KraT
    For `PHP <http://www.php.net/>`_ source code.
    For PHP embedded in HTML, use the `HtmlPhpLexer`.

    Additional options accepted:

    `startinline`
        If given and ``True`` the lexer starts highlighting with
        php code (i.e.: no starting ``<?php`` required).  The default
        is ``False``.
    `funcnamehighlighting`
        If given and ``True``, highlight builtin function names
        (default: ``True``).
    `disabledmodules`
        If given, must be a list of module names whose function names
        should not be highlighted. By default all modules are highlighted
        except the special ``'unknown'`` module that includes functions
        that are known to php but are undocumented.

        To get a list of allowed modules have a look into the
        `_php_builtins` module:

        .. sourcecode:: pycon

            >>> from pygments.lexers._php_builtins import MODULES
            >>> MODULES.keys()
            ['PHP Options/Info', 'Zip', 'dba', ...]

        In fact the names of those modules match the module names from
        the php documentation.
    �PHP)�php�php3�php4�php5)z*.phpz
*.php[345]z*.incz
text/x-phpz[\\\w]|[^\x00-\x7f]z(?:[\\_a-z]|[^\x00-\x7f])z(?:z)*z	<\?(php)?rbz[^<]+�<z\?>r(z(<<<)([\'"]?)(z)(\2\n.*?\n\s*)(\3)(;?)(\n)r$z#.*?\nr%z/\*\*/z/\*\*.*?\*/r&z
(->|::)(\s*)(�)z[~!%^&*+=|:.<>/@-]+z\?z
[\[\]{}();,]+z(class)(\s+)�	classnamez(function)(\s*)(?=\()z(function)(\s+)(&?)(\s*)�functionnamez
(const)(\s+)(a(and|E_PARSE|old_function|E_ERROR|or|as|E_WARNING|parent|eval|PHP_OS|break|exit|case|extends|PHP_VERSION|cfunction|FALSE|print|for|require|continue|foreach|require_once|declare|return|default|static|do|switch|die|stdClass|echo|else|TRUE|elseif|var|empty|if|xor|enddeclare|include|virtual|endfor|include_once|while|endforeach|global|endif|list|endswitch|new|endwhile|not|array|E_ALL|NULL|final|php_user_filter|interface|implements|public|private|protected|abstract|clone|try|catch|throw|this|use|namespace|trait|yield|finally)\bz(true|false|null)\b�magicconstantsz\$\{\$+z\}z\$+z"(\d+\.\d*|\d*\.\d+)(e[+-]?[0-9]+)?z\d+e[+-]?[0-9]+z0[0-7]+z0x[a-f0-9]+z\d+z0b[01]+z'([^'\\]*(?:\\.[^'\\]*)*)'z`([^`\\]*(?:\\.[^`\\]*)*)`�"r#)�__construct�
__destruct�__call�__callStatic�__get�__set�__isset�__unset�__sleep�__wakeup�
__toString�__invoke�__set_state�__clone�__debugInfoz\b)�suffix)�__LINE__�__FILE__�__DIR__�__FUNCTION__�	__CLASS__�	__TRAIT__�
__METHOD__�
__NAMESPACE__�
magicfuncsz	[^{$"\\]+z'\\([nrt"$\\]|[0-7]{1,3}|x[0-9a-f]{1,2})z\$z(\[\S+?\]|->z)?z(\{\$\{)(.*?)(\}\})T)�_startinlinez(\{)(\$.*?)(\})z(\$\{)(\S+)(\})z[${\\])r,rbr�rjrhrir#cKs�t|dd�|_t|ddg�|_t|dd�|_d|vr |�d�|_t�|_|jrAdd	lm	}|�
�D]\}}||jvr@|j�|�q1tj
|fi|��dS)
N�funcnamehighlightingT�disabledmodules�unknownrIFr�r)�MODULES)rr�rr�rI�pop�set�
_functions�pygments.lexers._php_builtinsr��items�updaterrJ)rKrLr��key�valuerFrFrGrJs"��
�zPhpLexer.__init__ccsf�dg}|jr|�d�t�|||�D]\}}}|tjur*||jvr*|tj|fVq|||fVqdS)Nr,rb)rIrTrrXrrr�r@)rKr[�stack�index�tokenr�rFrFrGrX.s�
�

�zPhpLexer.get_tokens_unprocessedcCs*t|d�rdSd}t�d|�r|d7}|S)NrbTgz
<\?(?!xml)g333333�?)rr6�search)r[�rvrFrFrG�analyse_text:s
zPhpLexer.analyse_textN)8r-r.r/r0r1r2r3�	mimetypes�_ident_char�_ident_begin�
_ident_end�_ident_innerr6�
IGNORECASEr7r8r9r�Preprocrrr�	Delimiterrrr:r;�Docr
r�	Attributerr?r�VariablerrA�OctrBrC�Bin�BacktickrDr	�Function�Magic�Classr�Escape�InterpolrrrErJrXr�rFrFrFrGr�s
 
�
�
������
���

���������
��
��#�$�%�&�'�(�)�*�+�,�-�.�/�
0�4���
���
	�
�
��������br)!r0r6�pygments.lexerrrrrrrrr	r
�pygments.tokenrrr
rrrrrrr�
pygments.utilrrr�__all__�compilerPrrrrFrFrFrG�<module>s
,0
A1

https://t.me/RX1948 - 2025