HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/pygments/lexers/__pycache__/diff.cpython-38.pyc
U

`a�[	�@s�dZddlZddlmZmZmZddlmZmZm	Z	m
Z
mZmZm
Z
dddgZGdd�de�ZGd	d�de�ZGd
d�de�ZdS)z�
    pygments.lexers.diff
    ~~~~~~~~~~~~~~~~~~~~

    Lexers for diff/patch formats.

    :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�
RegexLexer�include�bygroups)�Text�Comment�Operator�Keyword�Name�Generic�Literal�	DiffLexer�DarcsPatchLexer�
WDiffLexerc
@sxeZdZdZdZddgZddgZddgZd	d
efde	j
fde	jfd
e	jfde	j
fde	jfde	jfdefgiZdd�ZdS)rz>
    Lexer for unified or context-style diffs or patches.
    ZDiffZdiffZudiffz*.diffz*.patchztext/x-diffztext/x-patch�rootz .*\nz\+.*\nz-.*\nz!.*\nz@.*\nz([Ii]ndex|diff).*\nz=.*\n�.*\ncCs@|dd�dkrdS|dd�dkr(dS|dd�dkr<dSdS)	N�zIndex: T�zdiff �z--- g�������?�)�textrr�6/usr/lib/python3/dist-packages/pygments/lexers/diff.py�analyse_text,szDiffLexer.analyse_textN)�__name__�
__module__�__qualname__�__doc__�name�aliases�	filenames�	mimetypesrr
�Inserted�DeletedZStrongZ
Subheading�Heading�tokensrrrrrrs"��
c@seZdZdZdZdgZddgZdZdefdefd	efd
efde	ee
eeeee
jee�	fde	ee
eeeee
je�d
fdejfdejfdejfdd�e�e	ee
e�fdejdfdejdfdefg
defdedfgdedfdefged�dejfdejfged�dejfdejfgd �Zd!S)"r
z�
    DarcsPatchLexer is a lexer for the various versions of the darcs patch
    format.  Examples of this format are derived by commands such as
    ``darcs annotate --patch`` and ``darcs send``.

    .. versionadded:: 0.10
    zDarcs PatchZdpatchz*.dpatchz*.darcspatch)ZhunkZaddfileZadddirZrmfile�rmdirZmove�replace�<�>z\{z\}z/(\[)((?:TAG )?)(.*)(\n)(.*)(\*\*)(\d+)(\s?)(\])z+(\[)((?:TAG )?)(.*)(\n)(.*)(\*\*)(\d+)(\s?)�commentzNew patches:zContext:zPatch bundle hash:z(\s*)(%s)(.*\n)�|z\+�insert�-�deleterz	[^\]].*\nz\]�#popz\nz
\[_[^_]*_]�specialTextz\[z[^\n\[]+)rr(r.r*r,N)rrrrrrrZDPATCH_KEYWORDSrrrr	rrZDater
r"�joinr r!rrr#rrrrr
5s`����
�

������c	@s�eZdZdZdZdgZdgZgZej	ej
BZdZdZ
dZdZd	Zeejd
feejdfeefdefgeejd
feejd
feejdfe
ejdfeejfdejfgeejd
feejd
fe
ejdfeejdfeejfdejfgd�ZdS)ra'
    A `wdiff <https://www.gnu.org/software/wdiff/>`_ lexer.

    Note that:

    * only to normal output (without option like -l).
    * if target files of wdiff contain "[-", "-]", "{+", "+}",
      especially they are unbalanced, this lexer will get confusing.

    .. versionadded:: 2.2
    ZWDiffZwdiffz*.wdiffz\{\+z\+\}z\[\-z\-\]z[^{}[\]+-]+�inserted�deleted�.z#pushr-)rr0r1N)rrrrrrrr�re�	MULTILINE�DOTALL�flagsZins_opZins_clZdel_opZdel_clZnormalr
r r!rr#rrrrros>

�



�




��)rr3Zpygments.lexerrrrZpygments.tokenrrrrr	r
r�__all__rr
rrrrr�<module>s
$
 :