3

V'ícã@sNdZddlmZmZmZddlmZmZmZm	Z	m
Z
dgZGdd„deƒZdS)zÐ
    pygments.lexers.hexdump
    ~~~~~~~~~~~~~~~~~~~~~~~

    Lexers for hexadecimal dumps.

    :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é)Ú
RegexLexerÚbygroupsÚinclude)ÚNameÚNumberÚStringÚPunctuationÚ
WhitespaceÚHexdumpLexerc@sÜeZdZdZdZdgZdZdefedƒdeded	e	e
jee
jƒfed
e
jfde	eee
eƒdfd
e	eee
eƒdfde	eee
eƒfde	eee
eƒfde	ee
ƒfde	ee
ƒdfdefdefgdede	ejeƒdfdedejfgdedfedejfdefgdefedƒed
e
jfde	eee
eƒfdefdefgdefedƒed
e
jfde	eee
eƒfdefdefgdefedƒdeded	e	e
jee
jƒfed
e
jfde	ee
ƒfd e	ee
ƒfdefdefgd!œZd"S)#r
aâ
    For typical hex dump output formats by the UNIX and GNU/Linux tools ``hexdump``,
    ``hd``, ``hexcat``, ``od`` and ``xxd``, and the DOS tool ``DEBUG``. For example:

    .. sourcecode:: hexdump

        00000000  7f 45 4c 46 02 01 01 00  00 00 00 00 00 00 00 00  |.ELF............|
        00000010  02 00 3e 00 01 00 00 00  c5 48 40 00 00 00 00 00  |..>......H@.....|

    The specific supported formats are the outputs of:

    * ``hexdump FILE``
    * ``hexdump -C FILE`` -- the `canonical` format used in the example.
    * ``hd FILE`` -- same as ``hexdump -C FILE``.
    * ``hexcat FILE``
    * ``od -t x1z FILE``
    * ``xxd FILE``
    * ``DEBUG.EXE FILE.COM`` and entering ``d`` to the prompt.

    .. versionadded:: 2.1
    ZHexdumpZhexdumpz[0-9A-Ha-h]z\nÚoffsetú(z	{2})(\-)(z{2})z{2}z(\s{2,3})(\>)(.{16})(\<)$zbracket-stringsz(\s{2,3})(\|)(.{16})(\|)$z
piped-stringsz(\s{2,3})(\>)(.{1,15})(\<)$z(\s{2,3})(\|)(.{1,15})(\|)$z(\s{2,3})(.{1,15})$z(\s{2,3})(.{16}|.{20})$znonpiped-stringsz\sz^\*z^(z+)(:)zoffset-modeú^ú+z#popú:z(\s{2,3})(\|)(.{1,16})(\|)$z(\s{2,3})(\>)(.{1,16})(\<)$z(\s{19,})(.{1,20}?)$z(\s{2,3})(.{1,20})$)Úrootrzoffset-modez
piped-stringszbracket-stringsznonpiped-stringsN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚaliasesZhdr	rrrZHexrrrZLabelÚtokens©rrú;/tmp/pip-build-gk9425m9/Pygments/pygments/lexers/hexdump.pyr
sbN)
rZpygments.lexerrrrZpygments.tokenrrrrr	Ú__all__r
rrrrÚ<module>	s