HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/hgext/highlight/__pycache__/highlight.cpython-310.pyc
o

�]Lbc�@s�ddlmZddlmZej�gd��ddlmZmZddlm	Z	e�
��$ddlZddlZddl
ZddlZddlZej��D]Zq@Wd�n1sMwYejZejjZejjZejjZejjZejjZdZdd	d
�ZdS)�)�absolute_import)�demandimport)spkgutils
pkg_resourcess__main__)�encoding�pycompat)�
stringutilNsC
<link rel="stylesheet" href="{url}highlightcss" type="text/css" />Fcsh|�d�|jd}t|vr|t}||jd<|��}t�|�r"dSdD]}||vr0|�|d�}q$|�t�	t
j
�d�}zt�	|���}	t|	|dd�dd�}
Wn*t
tfyy|r]YdSzt|dd�dd�}
Wn
t
tfyvYYdSwYnwt|
t�r�dStdt�	|�d	�}t||
|�}d
d�|��D���fdd
�|jd<|j|}
|
�dd�}||j|<dS)Nsheader)������replaceiF)�stripnlT)�nowrap�stylecss$�|]
}|�t�tj�d�VqdS)rN)�encoder�sysstrr)�.0�s�r�;/usr/lib/python3/dist-packages/hgext/highlight/highlight.py�	<genexpr>\s
��
�zpygmentize.<locals>.<genexpr>cst��S)N)�next)�x��	coloriterrr�<lambda>aszpygmentize.<locals>.<lambda>scolorizesline|escapes
line|colorize)�load�cache�
SYNTAX_CSS�datar�binaryr�decoderrr�path�guess_lexer_for_filename�
ClassNotFound�
ValueError�guess_lexer�
isinstance�	TextLexer�
HtmlFormatter�	highlight�
splitlines�_filters)�field�fctxr�tmpl�guessfilenameonly�
old_header�
new_header�text�cr"�lexer�	formatter�	colorized�oldl�newlrrr�
pygmentize.sJ



����
�
r:)F)�
__future__r�	mercurialr�IGNORES�updaterr�mercurial.utilsr�deactivated�pygments�pygments.formatters�pygments.lexers�pygments.plugin�
pygments.util�plugin�find_plugin_lexers�unusedr*�utilr$�lexersr&r#r(�
formattersr)rr:rrrr�<module>s0

��
�