
    q"h                     `    S r SSKrS/r\R                  " S\R                  5      rS rSS jrg)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                 ^    [         R                  U 5      nU(       a  UR                  S5      $ g )N   )modeline_researchgroup)lms     O/var/www/html/env/lib/python3.13/site-packages/pip/_vendor/pygments/modeline.pyget_filetype_from_liner      s(    1Awwqz 	    c                     U R                  5       nUSU* S-
  S2    H  n[        U5      nU(       d  M  Us  $    [        USS5       H,  nU[        U5      :  d  M  [        X%   5      nU(       d  M*  Us  $    g)zD
Scan the buffer for modelines and return filetype if one is found.
r   N)
splitlinesr   rangelen)buf	max_lineslineslineretis         r   r   r      s{     NNEb)Ab()$T*3J * 9b"%s5z>(2Cs
	 & r   )   )__doc__re__all__compileVERBOSEr   r   r    r   r   <module>r       s?    
%
& jj  ZZr   