o
    Ñ­jš  ã                   @   s|   d Z ddlZddlmZmZmZ ddlmZmZm	Z	m
Z
mZmZmZmZmZmZ ddgZG dd„ deƒZG dd„ deƒZdS )	zÉ
    pygments.lexers.ldap
    ~~~~~~~~~~~~~~~~~~~~

    Pygments lexers for LDAP.

    :copyright: Copyright 2006-present by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é    N)Ú
RegexLexerÚbygroupsÚdefault)
ÚOperatorÚCommentÚKeywordÚLiteralÚNameÚStringÚNumberÚPunctuationÚ
WhitespaceÚEscapeÚ	LdifLexerÚLdaprcLexerc                   @   s  e Zd ZdZdZdgZdgZdgZdZdZ	de
fd	eee
ƒfd
eeje
ƒfdeeee
eje
ƒfdeeee
eje
ee
ƒdfdeeee
ee
ƒfdeeee
eje
ƒfdeeee
ee
ƒfdeeeƒdfdeeeƒdfdeeee
eje
ƒfdeejeƒdfdeejeƒdfdeejeƒdfgdedfdedfed ƒgd!eejeƒfd"eejeƒdfd#eejeƒdfgd$ee
ee
ƒfd%ee
ee
ƒd fgd&ee
eje
ƒfd'ee
eje
ƒd fgd(ee
ejeƒd)fgd*efd+ed,fd-ed,fd.efd/e
fd0e
d fgd1ee
ee
ƒfd2ee
ee
ƒd fgd3œZd4S )5r   z
    Lexer for LDIF
    ÚLDIFÚldifz*.ldifztext/x-ldifz-https://datatracker.ietf.org/doc/html/rfc2849ú2.17z\s*\nz(-)(\n)z	(#.*)(\n)z"(version)(:)([ \t]*)(.*)([ \t]*\n)z?(control)(:)([ \t]*)([\.0-9]+)([ \t]+)((?:true|false)?)([ \t]*)úafter-controlz+(deleteoldrdn)(:)([ \n]*)([0-1]+)([ \t]*\n)z,(add|delete|replace)(::?)(\s*)(.*)([ \t]*\n)z)(changetype)(:)([ \t]*)([a-z]*)([ \t]*\n)z(dn|newrdn)(::)ú	base64-dnz(dn|newrdn)(:)Údnz-(objectclass)(:)([ \t]*)([^ \t\n]*)([ \t]*\n)z!([a-zA-Z]*|[0-9][0-9\.]*[0-9])(;)Úpropertyz"([a-zA-Z]*|[0-9][0-9\.]*[0-9])(:<)Úurlz#([a-zA-Z]*|[0-9][0-9\.]*[0-9])(::?)Úvaluez:<)ú#popr   z::?)r   r   r   z([-a-zA-Z0-9]*)(;)z([-a-zA-Z0-9]*)(:<)z([-a-zA-Z0-9]*)(::?)z(\s*)([^\n]+\S)(\n )z(\s*)([^\n]+\S)(\n)z([ \t]*)(\S*)([ \t]*\n )z([ \t]*)(\S*)([ \t]*\n)z([ \t]*)([-a-zA-Z0-9\.]+)(=))r   údn-valuez\\[^\n]ú,)r   r   z\+z	[^,\+\n]+z\n z\nz+([ \t]*)([^ \t\n][^ \t\n]*[^\n])([ \t]*\n )z*([ \t]*)([^ \t\n][^ \t\n]*[^\n])([ \t]*\n))Úrootr   r   r   r   r   r   r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚaliasesÚ	filenamesÚ	mimetypesr   Úversion_addedr   r   r   r   ÚSingler   r   ÚIntegerr	   ÚOtherÚ	AttributeÚClassr   ÚPropertyr
   ÚPreprocFiler   r   Útokens© r/   r/   úQ/var/www/html/CropPilot/venv/lib/python3.10/site-packages/pygments/lexers/ldap.pyr      s´    
ÿÿÿÿÿÿÿÿÿêýÿÿü
ÿÿýÿÿÿýÿÿÿú	
ÿÿý
Âc                   @   sN  e Zd ZdZdZddgZg d¢ZdgZdZdZ	d	Z
d
Zde
› de› d�ZdZdZdZejejB Zddejfdefde› d�eeeejƒfde› d�eeeejƒfdeeeejƒfdeeeejƒfde› de› d�eeeejƒfdeeeejƒfdeeeejƒfdeeeejƒfdeeeeƒfd eeeeejƒfde› d!�eeeeƒfgiZd"S )#r   z1
    Lexer for OpenLDAP configuration files.
    zLDAP configuration fileÚldapconfÚldaprc)z.ldaprcr2   z	ldap.confztext/x-ldapconfzkhttps://www.openldap.org/software//man.cgi?query=ldap.conf&sektion=5&apropos=0&manpath=OpenLDAP+2.4-Releaser   z,SASL_(?:MECH|REALM|AUTHCID|AUTHZID|CBINDING)zSTLS_(?:CACERT|CACERTDIR|CERT|ECNAME|KEY|CIPHER_SUITE|PROTOCOL_MIN|RANDFILE|CRLFILE)z(?:URI|SOCKET_BIND_ADDRESSES|ú|ú)zEGSSAPI_(?:ALLOW_REMOTE_PRINCIPAL|ENCRYPT|SIGN)|REFERRALS|SASL_NOCANONzSKEEPALIVE_(?:IDLE|PROBES|INTERVAL)|NETWORK_TIMEOUT|PORT|SIZELIMIT|TIMELIMIT|TIMEOUTz]none|noanonymous|noplain|noactive|nodict|forwardsec|passcred|(?:minssf|maxssf|maxbufsize)=\d+r   z#.*z\s+ú(z!)(\s+)(on|true|yes|off|false|no)$z)(\s+)(\d+)z(VERSION)(\s+)(2|3)z,(DEREF)(\s+)(never|searching|finding|always)z(SASL_SECPROPS)(\s+)((?:z)(?:,z)*)z2(SASL_CBINDING)(\s+)(none|tls-unique|tls-endpoint)z7(TLS_REQ(?:CERT|SAN))(\s+)(allow|demand|hard|never|try)z"(TLS_CRLCHECK)(\s+)(none|peer|all)z(BASE|BINDDN)(\s+)(\S+)$z#(HOST)(\s+)([a-z0-9]+)((?::(\d+))?)z)(\s+)(\S+)$N)r   r   r    r!   r"   r#   r$   r%   r   r&   Ú_sasl_keywordsÚ_tls_keywordsÚ_literal_keywordsÚ_boolean_keywordsÚ_integer_keywordsÚ	_secpropsÚreÚ
IGNORECASEÚ	MULTILINEÚflagsr   r'   r   r   r   ÚConstantr   r(   r   r.   r/   r/   r/   r0   r   i   sf    
ÿ
ÿÿÿÿÿÿ
ÿÿ

ÿçÿ)r!   r<   Úpygments.lexerr   r   r   Úpygments.tokenr   r   r   r   r	   r
   r   r   r   r   Ú__all__r   r   r/   r/   r/   r0   Ú<module>   s    
0T