관리-도구
편집 파일: modeline.cpython-311.pyc
� �܋f� � �R � d Z ddlZdgZ ej dej � � Zd� Zdd�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 �h � t � | � � }|r|� d� � S d S )N� )�modeline_re�search�group)�l�ms �T/opt/cloudlinux/venv/lib64/python3.11/site-packages/pip/_vendor/pygments/modeline.py�get_filetype_from_liner s7 � ����1���A�� ��w�w�q�z�z��� � � c � � | � � � }|d| dz d� D ]}t |� � }|r|c S �t |dd� � D ]0}|t |� � k rt || � � }|r|c S �1dS )zL Scan the buffer for modelines and return filetype if one is found. ���r N)� splitlinesr �range�len)�buf� max_lines�linesr �ret�is r r r s� � � �N�N���E� �2�y�j��l�2�%� &� � ��$�Q�'�'��� ��J�J�J� � �9�b�"� %� %� � ���s�5�z�z�>�>�(��q��2�2�C�� �� � � ���4r )r )�__doc__�re�__all__�compile�VERBOSEr r r � r r �<module>r sp ��� � � � � �%� &�� �b�j� � �Z�� ��� � �� � � � � r