Files
intellecton/venv/lib/python3.12/site-packages/pygments/__pycache__/modeline.cpython-312.pyc
T

20 lines
1.5 KiB
Plaintext
Raw Normal View History

Ë
dÀjðãó^—dZddlZdgZejdej«Zd„Zdd„Zy)zÙ
pygments.modeline
~~~~~~~~~~~~~~~~~
A simple modeline parser (based on pymodeline).
:copyright: Copyright 2006-present 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óT—tj|«}|r|jd«Sy)Né)Ú modeline_reÚsearchÚgroup)ÚlÚms úT/home/antigravity/intellecton/venv/lib/python3.12/site-packages/pygments/modeline.pyÚget_filetype_from_liner s(€Ü×ј1Ó€AÙØ�w‰w�q‹zÐð ócóÒ—|j«}|d| dz
d…D]}t|«}|sŒ|cSt|dd«D]%}|t|«ksŒt||«}|sŒ#|cSy)zL
Scan the buffer for modelines and return filetype if one is found.
éÿÿÿÿrN)Ú
splitlinesr ÚrangeÚlen)ÚbufÚ max_linesÚlinesÚlineÚretÚis r rrsƒ€ð
�N‰NÓ €EØ�b˜)˜ A™ bÐ(Ñ)òˆÜ$ TÓ*ˆÚ ØŠJðô�9˜b "Ó
%òˆØ Œs�5‹z‹>Ü(¨¨q©Ó2ˆCÚØ’
ð ð r