HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/pip/_vendor/pygments/__pycache__/modeline.cpython-310.pyc
o

@%Ne��@s6dZddlZdgZe�dej�Zdd�Zd	dd�ZdS)
z�
    pygments.modeline
    ~~~~~~~~~~~~~~~~~

    A simple modeline parser (based on pymodeline).

    :copyright: Copyright 2006-2021 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]+ )
cCst�|�}|r|�d�SdS)N�)�modeline_re�search�group)�l�m�r	�?/usr/lib/python3/dist-packages/pip/_vendor/pygments/modeline.py�get_filetype_from_lines

�r�cCsp|��}|d|dd�D]}t|�}|r|Sqt|dd�D]}|t|�kr5t||�}|r5|Sq!dS)zL
    Scan the buffer for modelines and return filetype if one is found.
    ���rN)�
splitlinesr�range�len)�buf�	max_lines�linesr�ret�ir	r	r
rs��)r)�__doc__�re�__all__�compile�VERBOSErrrr	r	r	r
�<module>s
�