/usr/local/lib/python3.9/site-packages/pip/_vendor/pygments/__pycache__
a ���h� � @ s6 d Z ddlZdgZe�dej�Zdd� Zd dd�ZdS ) z� pygments.modeline ~~~~~~~~~~~~~~~~~ A simple modeline parser (based on pymodeline). :copyright: Copyright 2006-2025 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 �G/usr/local/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)�buf� max_lines�lines�line�ret�ir r r r s )r )�__doc__�re�__all__�compile�VERBOSEr r r r r r r �<module> s �
.
Edit
..
Edit
__init__.cpython-39.pyc
Edit
__main__.cpython-39.pyc
Edit
console.cpython-39.pyc
Edit
filter.cpython-39.pyc
Edit
formatter.cpython-39.pyc
Edit
lexer.cpython-39.pyc
Edit
modeline.cpython-39.pyc
Edit
plugin.cpython-39.pyc
Edit
regexopt.cpython-39.pyc
Edit
scanner.cpython-39.pyc
Edit
sphinxext.cpython-39.pyc
Edit
style.cpython-39.pyc
Edit
token.cpython-39.pyc
Edit
unistring.cpython-39.pyc
Edit
util.cpython-39.pyc
Edit