HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/pygments/__pycache__/modeline.cpython-310.pyc
o

���a��@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	�3/usr/lib/python3/dist-packages/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
�