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__/nix.cpython-38.pyc
U

`a�[��@sbdZddlZddlmZmZddlmZmZmZm	Z	m
Z
mZmZm
Z
mZdgZGdd�de�ZdS)z�
    pygments.lexers.nix
    ~~~~~~~~~~~~~~~~~~~

    Lexers for the NixOS Nix language.

    :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�
RegexLexer�include)	�Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�Literal�NixLexerc@s6eZdZdZdZddgZdgZdgZej	ej
BZddd	d
ddd
dddg
ZdddddddddddgZ
ddddd d!d"d#d$d%d&d'gZd(d)d*d+d,d-d.d/d0d1g
Zd2ejfd3ejd4fd5efd6d7�d8d9�eD��efd6d7�d:d9�e
D��ejfd;ejfd6d7�d<d9�eD��efd=ejfd6d7�d>d9�eD��efd?ejfd@ejdAfdBejdCfdDe fdEe fdFe fdGej!fdHefgdIejfd3ejdJfdKejdLfdMejfgdNej"fdOej"fdPej"fdQej"fdRej"fdBejdLfdSej#dTfdUejfgdVej"fdWej"fdXej"fd@ejdLfdSej#dTfdYejfgdZej#dLfdSej#dJfe$d[�gd\�Z%d]d^�Z&d_S)`r
zU
    For the `Nix language <http://nixos.org/nix/>`_.

    .. versionadded:: 2.0
    ZNixZnixosZnixz*.nixz
text/x-nixZrec�withZlet�inZinherit�assert�if�elseZthenz...�import�abortZ
baseNameOfZdirOfZisNull�builtins�mapZremoveAttrs�throwZtoStringZ
derivationz++�+�?�.�!z//z==z!=z&&z||z->�=�(�)�[�]�;�{�}�:�,�@z#.*$z/\*�commentz\s+z(%s)�|ccs|]}t�|�dVqdS�z\bN��re�escape��.0�entry�r0�5/usr/lib/python3/dist-packages/pygments/lexers/nix.py�	<genexpr>8szNixLexer.<genexpr>ccs|]}t�|�dVqdSr)r*r-r0r0r1r2;sz\b(true|false|null)\bccs|]}t�|�VqdS�Nr*r-r0r0r1r2Asz\b(or|and)\bccs|]}t�|�VqdSr3r*r-r0r0r1r2Hsz[0-9]+�"�doublequotez''�singlequotez[\w.+-]*(\/[\w.+-]+)+z\<[\w.+-]+(\/[\w.+-]+)*\>z4[a-zA-Z][a-zA-Z0-9\+\-\.]*\:[\w%/?:@&=+$,\\.!~*\'-]+z
[\w-]+\s*=z[a-zA-Z_][\w\'-]*z[^/*]+z#pushz\*/z#popz[*/]z'''z''\$\{z''\nz''\rz''\tz\$\{�	antiquotez[^']z\\z\\"z\\$\{z[^"]z\}�root)r8r'r6r5r7cCsXd}t�d|�r|d7}t�d|�r,|d7}t�d|�r@|d7}t�d|�rT|d7}|S)Ngzimport.+?<[^>]+>g�������?zmkDerivation\s+(\(|\{|rec)z=\s+mkIf\s+z\{[a-zA-Z,\s]+\}:g�������?)r+�search)�text�rvr0r0r1�analyse_text}szNixLexer.analyse_textN)'�__name__�
__module__�__qualname__�__doc__�name�aliases�	filenamesZ	mimetypesr+�	MULTILINE�UNICODE�flags�keywordsrZ	operatorsZpunctuationsr�SingleZ	Multiliner�joinrrZBuiltinZConstantrZWordrr
ZIntegerr	�DoublerZSymbolZEscapeZInterpolr�tokensr<r0r0r0r1r
s����
��

�1

�

�

�	

��Q)r@r+Zpygments.lexerrrZpygments.tokenrrrrrr	r
rr�__all__r
r0r0r0r1�<module>s

,