2bi ` S r SSKrS/r\R " S\R 5 rS rSS jrg)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.
Nget_filetype_from_bufferze
(?: vi | vim | ex ) (?: [<=>]? \d* )? :
.* (?: ft | filetype | syn | syntax ) = ( [^:\s]+ )
c ^ [ R U 5 nU( a UR S5 $ g )N )modeline_researchgroup)lms ڏ/builddir/build/BUILDROOT/alt-python313-pip-23.3.1-3.el8.x86_64/opt/alt/python313/lib/python3.13/site-packages/pip/_vendor/pygments/modeline.pyget_filetype_from_liner s( 1Awwqz c U R 5 nUSU* S-
S2 H n[ U5 nU( d M Us $ [ USS5 H, nU[ U5 : d M [ X% 5 nU( d M* Us $ g)zD
Scan the buffer for modelines and return filetype if one is found.
r N)
splitlinesr rangelen)buf max_lineslinesr retis r r r s{
NNE
2yjl2%
&$Q'3J ' 9b"
%s5z>(2Cs
& r
) )__doc__re__all__compileVERBOSEr r r r
r