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

Ë
ãó^dZddlZdgZejdej«ZdZddZy)
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.
éget_filetype_from_bufferze
(?: vi | vim | ex ) (?: [<=>]? \d* )? :
.* (?: ft | filetype | syn | syntax ) = ( [^:\s]+ )
cóTtj|«}|r|jd«Sy))Ú modeline_reÚsearchÚgroup)Úms úT/home/antigravity/intellecton/venv/lib/python3.12/site-packages/pygments/modeline.pyÚget_filetype_from_liner s(Ü×ј1Ó€AÙØw‰wq‹zÐð ócóÒ|j«}|d| dz
dD]}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 rrð
N‰NÓ €EØb˜)˜ A™ bЈÜ$ TÓÚ ØŠJðô9˜b 
ˆØ Œs5‹z‹>ܨq©Ó2ˆCÚØ
ð ð r