o
    ¯3IhE  ã                   @   sN   d Z ddlmZmZmZ ddlmZmZmZm	Z	m
Z
 dgZG dd„ deƒZdS )zÐ
    pygments.lexers.hexdump
    ~~~~~~~~~~~~~~~~~~~~~~~

    Lexers for hexadecimal dumps.

    :copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é    )Ú
RegexLexerÚbygroupsÚinclude)ÚNameÚNumberÚStringÚPunctuationÚ
WhitespaceÚHexdumpLexerc                   @   sä  e Zd ZdZdZdgZdZdZdZde	fe
dƒd	e d
 e d eejeejƒfed ejfdee	eeeƒdfdee	eeeƒdfdee	eeeƒfdee	eeeƒfdee	eƒfdee	eƒdfde	fdefgde d eejeƒdfde d ejfgde	dfed ejfdefgde	fe
dƒed ejfdee	eeeƒfde	fdefgde	fe
dƒed ejfd ee	eeeƒfde	fdefgde	fe
dƒd	e d
 e d eejeejƒfed ejfd!ee	eƒfd"ee	eƒfde	fdefgd#œZd$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.
    ÚHexdumpÚhexdumpz&https://en.wikipedia.org/wiki/Hex_dumpz2.1z[0-9A-Ha-h]z\nÚoffsetú(z	{2})(\-)(z{2})z{2}z(\s{2,3})(\>)(.{16})(\<)$úbracket-stringsz(\s{2,3})(\|)(.{16})(\|)$ú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})$únonpiped-stringsz\sz^\*z^(z+)(:)úoffset-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})$)Úrootr   r   r   r   r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚaliasesÚurlÚversion_addedÚhdr	   r   r   r   ÚHexr   r   r   ÚLabelÚtokens© r#   r#   úW/home/air/sanwanet/gpt-api/venv/lib/python3.10/site-packages/pygments/lexers/hexdump.pyr
      s†    ÿÿÿÿÿïþýÿù
ÿù
ÿ÷
ÑN)r   Úpygments.lexerr   r   r   Úpygments.tokenr   r   r   r   r	   Ú__all__r
   r#   r#   r#   r$   Ú<module>   s
    
