File: //usr/lib/python3/dist-packages/pygments/lexers/__pycache__/diff.cpython-38.pyc
U
`a�[ � @ s� d Z ddlZddlmZmZmZ ddlmZmZm Z m
Z
mZmZm
Z
dddgZG dd� de�ZG d d� de�ZG d
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
@ sx e Zd ZdZdZddgZddgZddgZd d
efde j
fde jfd
e jfde j
fde jfde jfdefgiZdd� ZdS )r z>
Lexer for unified or context-style diffs or patches.
ZDiffZdiffZudiffz*.diffz*.patchztext/x-diffztext/x-patch�rootz .*\nz\+.*\nz-.*\nz!.*\nz@.*\nz([Ii]ndex|diff).*\nz=.*\n�.*\nc C s@ | d d� dkrdS | d d� dkr(dS | d d� dkr<dS d S ) N� zIndex: T� zdiff � z--- g�������?� )�textr r �6/usr/lib/python3/dist-packages/pygments/lexers/diff.py�analyse_text, s zDiffLexer.analyse_textN)�__name__�
__module__�__qualname__�__doc__�name�aliases� filenames� mimetypesr r
�Inserted�DeletedZStrongZ
Subheading�Heading�tokensr r r r r r s"