Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
diff.cpython-313.pyc61 linesDownload Raw Back to __pycache__
1�

2�j	���SrSSKrSSKJrJrJr SSKJrJrJ	r	J3r4JrJrJ
r
Jr /SQr"SS\5r"SS	\5r"S5S\5rg)z�6pygments.lexers.diff7~~~~~~~~~~~~~~~~~~~~8 9Lexers for diff/patch formats.10 11:copyright: Copyright 2006-present by the Pygments team, see AUTHORS.12:license: BSD, see LICENSE for details.13�N)�14RegexLexer�include�bygroups)�Text�Comment�Operator�Keyword�Name�Generic�Literal�15Whitespace)�	DiffLexer�DarcsPatchLexer�16WDiffLexerc
�d�\rSrSrSrSrSS/rSS/rSS	/rS17r	Sr18SS
\"\\
\54S\"\R\54S\"\R \54S\"\R"\54S\"\R$\54S\"\R&\54S\"\R&\54S\"\
\54/0rSrSrg)r�z619Lexer for unified or context-style diffs or patches.20�Diff�diff�udiffz*.diffz*.patchztext/x-diffztext/x-patchz"https://en.wikipedia.org/wiki/Diff��rootz( )(.*)(\n)z
(!.*|---)(\n)z((?:< |-).*)(\n)z((?:> |\+).*)(\n)z*(@.*|\d(?:,\d+)?(?:a|c|d)\d+(?:,\d+)?)(\n)z((?:[Ii]ndex|diff).*)(\n)z	(=.*)(\n)�(.*)(\n)c�@�USSS:XagUSSS:XagUSSS:Xagg)	N�zIndex: T�zdiff �z--- g�������?�)�texts �ZD:\code\apps\devtools\python\user_packages\Python313\site-packages\pygments/lexers/diff.py�analyse_text�DiffLexer.analyse_text0s:�����8�y� �����8�w������8�v����rN)�__name__�21__module__�__qualname__�__firstlineno__�__doc__�name�aliases�	filenames�	mimetypes�url�
version_addedrr
rr�Strong�Deleted�Inserted�22Subheading�Heading�tokensr �__static_attributes__rr"rrrs�����D��w��G��9�%�I���/�I�23.�C��M�	�
�X�j�$�24�C�D�
�x����25�C�D�
 �(�7�?�?�J�"G�H�
!�8�G�,<�,<�j�#I�J�=���+�+�Z�8�
�*�8�G�O�O�Z�+P�Q�
�8�G�O�O�Z�@�A�
�(�4��4�5�26��F� r"rc�X�\rSrSrSrSrS/rSS/rSrSr	S	r27S28\4S\4S\4S
\4S\"\\
\\\\\R"\\5	4S\"\\
\\\\\R"\5S4S\R&4S\R&4S\R&4SR)SR+\2955\"\\
\\54S\R.S4S\R0S4S\"\\54/
S\4S\S4/S\S4S\4/\"S 5S!\R.4S"\R.4/\"S 5S!\R04S"\R04/S#.rS$rg%)&r�9z�30DarcsPatchLexer is a lexer for the various versions of the darcs patch31format.  Examples of this format are derived by commands such as32``darcs annotate --patch`` and ``darcs send``.33zDarcs Patch�dpatchz*.dpatchz*.darcspatchzhttps://darcs.netz0.10)�hunk�addfile�adddir�rmfile�rmdir�move�replace�<�>z\{z\}z/(\[)((?:TAG )?)(.*)(\n)(.*)(\*\*)(\d+)(\s?)(\])z+(\[)((?:TAG )?)(.*)(\n)(.*)(\*\*)(\d+)(\s?)�commentzNew patches:zContext:zPatch bundle hash:z(\s*)({})(.*)(\n)�|z\+�insert�-�deleterz	[^\]].*\nz\]�#popz\nz34\[_[^_]*_]�specialTextz\[z[^\n\[]+)rrArGrCrErN)r#r$r%r&r'r(r)r*r,r-�DPATCH_KEYWORDSrrr	r35r
r�Daterr2�format�joinrr0r/rrr3r4rr"rrr9s�����D��j�G��^�,�I�36�C��M�"�O�37�8��
�8��
�H��
�H��
?�
�h���z�4���l�l�J��:�
;�<�
�h���z�4���l�l�J�0�1:�
<��g�o�o�.�
�'�/�/�*�
"�G�O�O�4�
!�
(�
(����/�)B�
C���W�d�J�?�
A�
�G�$�$�h�/�
�7�?�?�H�-�
�(�4��4�5�%38�*�7�#�
�H�f�%�39�40�J��'�
�H�%�41�42
�M�"�
�G�$�$�%�
�'�*�*�+�43�
�M�"�
�G�O�O�$�
�'�/�/�*�44�E'�Fr"rc	��\rSrSrSrSrSrS/rS/r/r	Sr45\R\R-rSrS	rS46rSrSr\\R*S
4\\R,S4\\4S\4/\\R*S4\\R*S4\\R*S4\\R*S4\\R*4S\R*4/\\R,S4\\R,S4\\R,S4\\R,S4\\R,4S\R,4/S.rSrg)r�sz�47A wdiff lexer.48 49Note that:50 51* It only works with normal output (without options like ``-l``).52* If the target files contain "[-", "-]", "{+", or "+}",53  especially they are unbalanced, the lexer will get confused.54�WDiffz#https://www.gnu.org/software/wdiff/�wdiffz*.wdiffz2.2z\{\+z\+\}z\[\-z\-\]z[^{}[\]+-]+�inserted�deleted�.z#pushrF)rrPrQrN)r#r$r%r&r'r(r,r)r*r+r-�re�	MULTILINE�DOTALL�flags�ins_op�ins_cl�del_op�del_cl�normalrr0r/rr3r4rr"rrrssL����D�55/�C��i�G���I��I��M��L�L�2�9�9�$�E��F�
�F�
�F�
�F�
�F��W�%�%�z�2�
�W�_�_�i�0�
�T�N�
�4�L�	56��W�%�%�w�/�
�W�%�%�w�/�
�W�%�%�v�.�
�W�%�%�v�.�
�W�%�%�&�
�7�#�#�$�57��W�_�_�g�.�
�W�_�_�g�.�
�W�_�_�f�-�
�W�_�_�f�-�
�W�_�_�%�
�7�?�?�#�58�!�Fr"r)r'rS�pygments.lexerrrr�pygments.tokenrrrr	r59rrr
�__all__rrrrr"r�<module>r_sQ���60�8�8����9��"�61�"�J7�j�7�t6��6r"
codekingpro/portable-devtools · Team Ai