| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/site-packages/pip/_vendor/pygments/__pycache__/ |
Upload File : |
a
X��e� � @ s6 d Z ddlZdgZe�dej�Zdd� Zd dd�ZdS )
z�
pygments.modeline
~~~~~~~~~~~~~~~~~
A simple modeline parser (based on pymodeline).
:copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
� N�get_filetype_from_bufferze
(?: vi | vim | ex ) (?: [<=>]? \d* )? :
.* (?: ft | filetype | syn | syntax ) = ( [^:\s]+ )
c C s t �| �}|r|�d�S d S )N� )�modeline_re�search�group)�l�m� r �A/usr/lib/python3.9/site-packages/pip/_vendor/pygments/modeline.py�get_filetype_from_line s
r � c C sp | � � }|d| d d� D ]}t|�}|r| S qt|dd�D ](}|t|�k rBt|| �}|rB| S qBdS )zL
Scan the buffer for modelines and return filetype if one is found.
���r N)�
splitlinesr �range�len)�bufZ max_lines�linesr �ret�ir r r
r s
)r )�__doc__�re�__all__�compile�VERBOSEr r r r r r r
�<module> s
�