3
.ßL]o|  ã               @   s¶  d Z ddlZddlmZmZmZ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lmZ ddlmZ ddd	d
dddddddddddddgZG dd„ deƒZG dd„ deƒZG dd	„ d	eƒZdd„ ZG dd
„ d
eƒZG dd„ deƒZG dd„ deƒZG d d„ deƒZ G d!d„ deƒZ!G d"d„ deƒZ"G d#d„ deƒZ#G d$d„ deƒZ$G d%d„ deƒZ%G d&d„ deƒZ&G d'd„ deƒZ'G d(d„ deƒZ(G d)d„ deƒZ)G d*d„ deƒZ*dS )+zÙ
    pygments.lexers.configs
    ~~~~~~~~~~~~~~~~~~~~~~~

    Lexers for configuration file formats.

    :copyright: Copyright 2006-2019 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é    N)Ú
RegexLexerÚdefaultÚwordsÚbygroupsÚincludeÚusing)
ÚTextÚCommentÚOperatorÚKeywordÚNameÚStringÚNumberÚPunctuationÚ
WhitespaceÚLiteral)Ú	BashLexer)Ú	JsonLexerÚIniLexerÚRegeditLexerÚPropertiesLexerÚKconfigLexerÚCfengine3LexerÚApacheConfLexerÚSquidConfLexerÚNginxConfLexerÚLighttpdConfLexerÚDockerLexerÚTerraformLexerÚTermcapLexerÚTerminfoLexerÚPkgConfigLexerÚPacmanConfLexerÚAugeasLexerÚ	TOMLLexerc               @   sp   e Zd ZdZdZdddgZdddgZd	d
gZddefde	j
fdefdeejeeeeƒfdejfgiZdd„ ZdS )r   z5
    Lexer for configuration files in INI style.
    ZINIZiniÚcfgZdosiniz*.iniz*.cfgz*.infz
text/x-iniztext/infÚrootz\s+z[;#].*z\[.*?\]$z*(.*?)([ \t]*)(=)([ \t]*)(.*(?:\n[ \t].+)*)z(.+?)$c             C   s2   | j dƒ}|dk rdS | d dko0| |d  dkS )NÚ
é   Fr   ú[é   ú])Úfind)ÚtextZnpos© r.   ú=/tmp/pip-install-5sebvq2j/pygments/pygments/lexers/configs.pyÚanalyse_text1   s    
zIniLexer.analyse_textN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚaliasesÚ	filenamesÚ	mimetypesr   r	   ÚSingler   r   r   Ú	Attributer
   r   Útokensr0   r.   r.   r.   r/   r      s   

c               @   s®   e Zd ZdZdZdgZdgZdgZdefdefde	j
fd	eeeejeƒfd
eejeeeƒdfdeejeeeƒdfgdedfdeejeeƒdfdedfedƒgdœZdd„ ZdS )r   z 
    Lexer for `Windows Registry
    <http://en.wikipedia.org/wiki/Windows_Registry#.REG_files>`_ files produced
    by regedit.

    .. versionadded:: 1.6
    ÚregÚregistryz*.regztext/x-windows-registryzWindows Registry Editor.*z\s+z[;#].*z(\[)(-?)(HKEY_[A-Z_]+)(.*?\])$z)("(?:\\"|\\\\|[^"])+")([ \t]*)(=)([ \t]*)Úvaluez(.*?)([ \t]*)(=)([ \t]*)ú-z#popz1(dword|hex(?:\([0-9a-fA-F]\))?)(:)([0-9a-fA-F,]+)z.+)r&   r>   c             C   s
   | j dƒS )NzWindows Registry Editor)Ú
startswith)r-   r.   r.   r/   r0   `   s    zRegeditLexer.analyse_textN)r1   r2   r3   r4   r5   r6   r7   r8   r   r	   r9   r   r   r
   r   ÚBuiltinr:   ÚVariabler   r   r   r   r;   r0   r.   r.   r.   r/   r   8   s,   c               @   sz   e Zd ZdZdZddgZdgZdgZddee	j
eeƒfd	e	j
fd
eeeƒfdeeeƒfdee	j
eeeeƒfdefgiZdS )r   z¦
    Lexer for configuration files in Java's properties format.

    Note: trailing whitespace counts as part of the value as per spec

    .. versionadded:: 1.4
    Z
PropertiesZ
propertiesZjpropertiesz*.propertiesztext/x-java-propertiesr&   z^(\w+)([ \t])(\w+\s*)$z^\w+(\\[ \t]\w*)*$z(^ *)([#!].*)z(^ *)((?:;|//).*)z/(.*?)([ \t]*)([=:])([ \t]*)(.*(?:(?<=\\)\n.*)*)z\sN)r1   r2   r3   r4   r5   r6   r7   r8   r   r   r:   r   r   r	   r
   r;   r.   r.   r.   r/   r   d   s   c             C   sB   d}|dkrd}nd|d  }| dkr,d}nd|  }d|||f S )	Né   é   ú+z{1,%d}r*   Ú z{%s}z(?:\t| %s\t| {%s})%s.*\nr.   )ÚlevelZ	tab_widthZspace_repeatZlevel_repeatr.   r.   r/   Ú
_rx_indent€   s    rH   c               @   s  e Zd ZdZdZddddgZdddd	gZd
gZdZdd„ Z	dd„ Z
defdejfed9d#d$�efd%ed&fd'ejfd(efd)efd*ejfd+ejfd,ejfd-efgd.efe	d/ƒe	d0ƒe	d1ƒe	d2ƒe	d3ƒe	d4ƒe	d5ƒed6ƒg	e
d/ƒe
d0ƒe
d1ƒe
d2ƒe
d3ƒe
d4ƒe
d5ƒd7œ	Zd8S ):r   zC
    For Linux-style Kconfig files.

    .. versionadded:: 1.6
    ZKconfigZkconfigÚ
menuconfigzlinux-configzkernel-configz*Config.in*zexternal.in*zstandard-modules.inztext/x-kconfigr   c             C   s   t | ƒtjd|  fS )Nzindent%s)rH   r   ÚDoc)rG   r.   r.   r/   Úcall_indent¤   s    zKconfigLexer.call_indentc             C   s   t | ƒtjfdtftdƒgS )Nz\s*\nz#pop:2)rH   r   rJ   r   r   )rG   r.   r.   r/   Ú	do_indent¨   s    zKconfigLexer.do_indentz\s+z#.*?\nÚmainmenuÚconfigÚchoiceÚ	endchoiceÚcommentÚmenuÚendmenuú
visible ifÚifÚendifÚsourceÚpromptÚselectú
depends onr   ÚrangeÚoptionz\b)Úsuffixz(---help---|help)[\t ]*\nÚhelpz;(bool|tristate|string|hex|int|defconfig_list|modules|env)\bz[!=&|]z[()]z[0-9]+z'(''|[^'])*'z"(""|[^"])*"z\S+z\s*\né   é   é   é   r(   rD   r*   z#pop)	r&   r^   Zindent7Zindent6Zindent5Zindent4Zindent3Zindent2Zindent1N)rM   rN   rI   rO   rP   rQ   rR   rS   rT   rU   rV   rW   rX   rY   rZ   r   r[   r\   )r1   r2   r3   r4   r5   r6   r7   r8   ÚflagsrK   rL   r   r	   r9   r   r   r   rA   r
   r   r   ÚIntegerr   ÚDoubler   r;   r.   r.   r.   r/   r   ”   sT      c               @   sn  e Zd ZdZdZddgZdgZg Zdefde	e
ee
ee
ƒfde	e
ee
eejeƒd	fd
e	e
ee
eejƒfde	eejeee
jeeeƒfde	e
jeeeƒfdedfde	ejeƒfde	ejeƒfde	e
jeƒfdejfdefdefdefdejfdejfdejfdefgdejdfdejfdedfdefdefgdejd fd!ejdfd"ejfgd#edfd$efdejfdefgd%œZd&S )'r   z_
    Lexer for `CFEngine3 <http://cfengine.org>`_ policy files.

    .. versionadded:: 1.5
    Z	CFEngine3Z	cfengine3Zcf3z*.cfz#.*?\nz(body)(\s+)(\S+)(\s+)(control)z%(body|bundle)(\s+)(\S+)(\s+)(\w+)(\()Úarglistz!(body|bundle)(\s+)(\S+)(\s+)(\w+)z7(")([^"]+)(")(\s+)(string|slist|int|real)(\s*)(=>)(\s*)z(\S+)(\s*)(=>)(\s*)ú"Ústringz	(\w+)(\()z([\w.!&|()]+)(::)z(\w+)(:)z@[{(][^)}]+[})]z[(){},;]z=>z->z\d+\.\d+z\d+z\w+z\s+z\$[{(]Úinterpolz\\.z#popz\nÚ.z#pushz[})]z	[^${()}]+z\)ú,)r&   rh   ri   rf   N)r1   r2   r3   r4   r5   r6   r7   r8   r	   r   r   r   r   ZFunctionr   rB   ÚTyper
   ÚReservedr   ÚClassÚDeclarationr   ÚFloatrd   ÚInterpolÚEscaper;   r.   r.   r.   r/   r   á   sT   




c               @   s¼   e Zd ZdZdZdddgZdddgZd	gZej	ej
B Zd
efdefdeejeeejƒfdeejeƒdfdefgdefdedfdefdefdefdefdejfdefdejfdefg
dœZdS )r   zo
    Lexer for configuration files following the Apache config file
    format.

    .. versionadded:: 0.6
    Z
ApacheConfZ
apacheconfZaconfZapachez	.htaccesszapache.confzapache2.confztext/x-apacheconfz\s+z(#.*?)$z(<[^\s>]+)(?:(\s+)(.*))?(>)z([a-z]\w*)(\s+)r>   z\.+z\\\nú$z#popz\\z[^\S\n]+z\d+\.\d+\.\d+\.\d+(?:/\d+)?z\d+z/([a-z0-9][\w./-]+)z¢(on|off|none|any|all|double|email|dns|min|minimal|os|productonly|full|emerg|alert|crit|error|warn|notice|info|debug|registry|script|inetd|standalone|user|group)\bz"([^"\\]*(?:\\.[^"\\]*)*)"z	[^\s"\\]+)r&   r>   N)r1   r2   r3   r4   r5   r6   r7   r8   ÚreÚ	MULTILINEÚ
IGNORECASErc   r   r	   r   r   ÚTagr   rA   r   ZOtherr   re   r;   r.   r.   r.   r/   r     s0   

c            º   @   sH  e Zd ZdZdZdddgZdgZdgZej	Z
�dZ�dZ�dZ�dZ�dZ�dZdþZdÿef�d e�dfee�d�d�d�efee�d�d�d�ejfee�d�d�d�efee�d�d�d�efee�d�d�d�efee�d�d�d�efe�d e �d ejf�d	ef�d
efg�dej�df�de�dfe�dƒg�dœZ�dS (  r   zj
    Lexer for `squid <http://www.squid-cache.org/>`_ configuration files.

    .. versionadded:: 0.9
    Z	SquidConfZ	squidconfú
squid.confZsquidztext/x-squidconfÚ
access_logÚaclÚalways_directÚannounce_hostÚannounce_periodÚannounce_portÚannounce_toÚanonymize_headersÚappend_domainÚas_whois_serverÚauth_param_basicÚauthenticate_childrenÚauthenticate_programÚauthenticate_ttlÚbroken_postsÚbuffered_logsÚcache_access_logÚcache_announceÚ	cache_dirÚcache_dns_programÚcache_effective_groupÚcache_effective_userÚ
cache_hostÚcache_host_aclÚcache_host_domainÚ	cache_logÚ	cache_memÚcache_mem_highÚcache_mem_lowÚ	cache_mgrÚcachemgr_passwdÚ
cache_peerÚcache_peer_accessÚcahce_replacement_policyÚcache_stoplistÚcache_stoplist_patternÚcache_store_logÚ
cache_swapÚcache_swap_highÚcache_swap_logÚcache_swap_lowÚ	client_dbÚclient_lifetimeÚclient_netmaskÚconnect_timeoutÚcoredump_dirÚdead_peer_timeoutÚdebug_optionsÚdelay_accessÚdelay_classÚdelay_initial_bucket_levelÚdelay_parametersÚdelay_poolsÚ	deny_infoÚdns_childrenÚdns_defnamesÚdns_nameserversÚdns_testnamesÚemulate_httpd_logÚerr_html_textÚfake_user_agentÚfirewall_ipÚforwarded_forÚforward_snmpd_portÚfqdncache_sizeÚftpget_optionsÚftpget_programÚftp_list_widthÚftp_passiveÚftp_userÚhalf_closed_clientsÚheader_accessÚheader_replaceÚhierarchy_stoplistÚhigh_response_time_warningÚhigh_page_fault_warningÚ
hosts_fileÚ	htcp_portÚhttp_accessÚhttp_anonymizerÚhttpd_accelÚhttpd_accel_hostÚhttpd_accel_portÚhttpd_accel_uses_host_headerÚhttpd_accel_with_proxyÚ	http_portÚhttp_reply_accessÚ
icp_accessÚicp_hit_staleÚicp_portÚicp_query_timeoutÚident_lookupÚident_lookup_accessÚident_timeoutÚincoming_http_averageÚincoming_icp_averageÚinside_firewallÚipcache_highÚipcache_lowÚipcache_sizeÚlocal_domainÚlocal_ipÚlogfile_rotateÚlog_fqdnÚlog_icp_queriesÚlog_mime_hdrsÚmaximum_object_sizeÚmaximum_single_addr_triesÚmcast_groupsÚmcast_icp_query_timeoutÚmcast_miss_addrÚmcast_miss_encode_keyÚmcast_miss_portÚmemory_poolsÚmemory_pools_limitÚmemory_replacement_policyÚ
mime_tableÚmin_http_poll_cntÚmin_icp_poll_cntÚminimum_direct_hopsÚminimum_object_sizeÚminimum_retry_timeoutÚmiss_accessÚnegative_dns_ttlÚnegative_ttlÚneighbor_timeoutÚneighbor_type_domainÚ
netdb_highÚ	netdb_lowÚnetdb_ping_periodÚnetdb_ping_rateÚnever_directÚno_cacheÚpassthrough_proxyÚpconn_timeoutÚpid_filenameÚpinger_programÚpositive_dns_ttlÚprefer_directÚ
proxy_authÚproxy_auth_realmÚ
query_icmpÚquick_abortÚquick_abort_maxÚquick_abort_minÚquick_abort_pctÚrange_offset_limitÚread_timeoutÚredirect_childrenÚredirect_programÚredirect_rewrites_host_headerÚreference_ageÚrefresh_patternÚreload_into_imsÚrequest_body_max_sizeÚrequest_sizeÚrequest_timeoutÚshutdown_lifetimeÚsingle_parent_bypassÚsiteselect_timeoutÚsnmp_accessÚsnmp_incoming_addressÚ	snmp_portÚsource_pingÚ	ssl_proxyÚstore_avg_object_sizeÚstore_objects_per_bucketÚstrip_query_termsÚswap_level1_dirsÚswap_level2_dirsÚtcp_incoming_addressÚtcp_outgoing_addressÚtcp_recv_bufsizeÚtest_reachabilityÚudp_hit_objÚudp_hit_obj_sizeÚudp_incoming_addressÚudp_outgoing_addressÚunique_hostnameÚunlinkd_programÚuri_whitespaceÚuseragent_logÚvisible_hostnameÚ
wais_relayÚwais_relay_hostÚwais_relay_portú
proxy-onlyÚweightÚttlúno-queryr   úround-robinúmulticast-responderÚonÚoffÚallÚdenyÚallowÚviaÚparentú	no-digestÚheapÚlruÚrealmÚchildrenÚq1Úq2ÚcredentialsttlÚnoneÚdisableÚoffline_toggleÚdiskdÚshutdownÚinfoÚ	parameterÚserver_listÚclient_listÚobjectsÚ
vm_objectsÚutilizationÚipcacheÚ	fqdncacheÚdnsÚ
redirectorÚioÚreply_headersÚfiledescriptorsÚnetdbÚstatusÚenableÚclearÚ	url_regexÚurlpath_regexÚreferer_regexÚportÚprotoÚreq_mime_typeÚrep_mime_typeÚmethodÚbrowserÚuserÚsrcÚdstÚtimeÚ	dstdomainÚidentÚsnmp_communitya™  (?:(?:(?:[3-9]\d?|2(?:5[0-5]|[0-4]?\d)?|1\d{0,2}|0x0*[0-9a-f]{1,2}|0+[1-3]?[0-7]{0,2})(?:\.(?:[3-9]\d?|2(?:5[0-5]|[0-4]?\d)?|1\d{0,2}|0x0*[0-9a-f]{1,2}|0+[1-3]?[0-7]{0,2})){3})|(?!.*::.*::)(?:(?!:)|:(?=:))(?:[0-9a-f]{0,4}(?:(?<=::)|(?<!::):)){6}(?:[0-9a-f]{0,4}(?:(?<=::)|(?<!::):)[0-9a-f]{0,4}(?:(?<=::)|(?<!:)|(?<=:)(?<!::):)|(?:25[0-4]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-4]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))z\s+ú#rQ   z\b)Úprefixr]   zstats/zlog/ú=z(?:/(?:z|\b\d+\b))?z(?:\b\d+\b(?:-\b\d+|%)?)z\S+z	\s*TAG:.*z#popz.+)r&   rQ   N)ºry   rz   r{   r|   r}   r~   r   r€   r�   r‚   rƒ   r„   r…   r†   r‡   rˆ   r‰   rŠ   r‹   rŒ   r�   rŽ   r�   r�   r‘   r’   r“   r”   r•   r–   r—   r˜   r™   rš   r›   rœ   r�   rž   rŸ   r    r¡   r¢   r£   r¤   r¥   r¦   r§   r¨   r©   rª   r«   r¬   r­   r®   r¯   r°   r±   r²   r³   r´   rµ   r¶   r·   r¸   r¹   rº   r»   r¼   r½   r¾   r¿   rÀ   rÁ   rÂ   rÃ   rÄ   rÅ   rÆ   rÇ   rÈ   rÉ   rÊ   rË   rÌ   rÍ   rÎ   rÏ   rÐ   rÑ   rÒ   rÓ   rÔ   rÕ   rÖ   r×   rØ   rÙ   rÚ   rÛ   rÜ   rÝ   rÞ   rß   rà   rá   râ   rã   rä   rå   ræ   rç   rè   ré   rê   rë   rì   rí   rî   rï   rð   rñ   rò   ró   rô   rõ   rö   r÷   rø   rù   rú   rû   rü   rý   rþ   rÿ   r   r  r  r  r  r  r  r  r  r	  r
  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r!  r"  r#  r$  r%  r&  r'  r(  r)  r*  r+  r,  r-  r.  r/  r0  r1  r2  )r3  r4  r5  r6  r   r7  r8  r9  r:  r;  r<  r=  r>  r?  r@  rA  rB  rC  rD  rE  rF  rG  rH  rI  rJ  rK  )rL  rM  rN  rO  rP  rx   )rQ  rR  rS  rT  rU  rV  rW  rX  rY  rZ  r[  )r\  r]  rI  r^  )r_  r`  ra  rb  rc  rd  re  rf  rg  rh  ri  rj  rk  rl  rm  rn  )r1   r2   r3   r4   r5   r6   r7   r8   rt   rv   rc   ÚkeywordsÚoptsÚactionsZactions_statsZactions_logZaclsZip_rer   r	   r   r   r   ÚConstantr   r   rp   r   rr   r   r;   r.   r.   r.   r/   r   H  s²   
                                                              
c               @   sâ   e Zd ZdZdZdgZdgZdgZdee	e
eƒfde	dfed	ƒgd
edfde	jdfed	ƒgdedfdedfed	ƒgdejfdejfdejfdeeeejƒfdefdejfdeee
ejƒfdefdefdefde
fde
fgdœZdS )r   za
    Lexer for `Nginx <http://nginx.net/>`_ configuration files.

    .. versionadded:: 0.11
    zNginx configuration fileZnginxz
nginx.confztext/x-nginx-confz(include)(\s+)([^\s;]+)z[^\s;#]+ÚstmtÚbasez\}z#pop:2z\{Úblockú;z#popz#.*\nzon|offz\$[^\s;#()]+z([a-z0-9.-]+)(:)([0-9]+)z[a-z-]+/[a-z-+]+z[0-9]+[km]?\bz(~)(\s*)([^\s{]+)z[:=~]z[^\s;#{}$]+z	/[^\s;#]*z\s+z[$;])r&   rx  rv  rw  N)r1   r2   r3   r4   r5   r6   r7   r8   r   r   r   r   r   r   Ú	Namespacer	   r9   ru  rB   r   rd   r   ÚRegexr;   r.   r.   r.   r/   r   Ê  s6   
c               @   sp   e Zd ZdZdZddgZg ZdgZddej	fde
fd	efd
efdefdefde
jfdefdejfdefg
iZdS )r   zg
    Lexer for `Lighttpd <http://lighttpd.net/>`_ configuration files.

    .. versionadded:: 0.11
    zLighttpd configuration fileZlightyZlighttpdztext/x-lighttpd-confr&   z#.*\nz/\S*z[a-zA-Z._-]+z\d+\.\d+\.\d+\.\d+(?:/\d+)?z[0-9]+z=>|=~|\+=|==|=|\+z\$[A-Z]+z[(){}\[\],]z"([^"\\]*(?:\\.[^"\\]*)*)"z\s+N)r1   r2   r3   r4   r5   r6   r7   r8   r	   r9   r   r   r   r
   rA   r   r   re   r   r;   r.   r.   r.   r/   r   ø  s    c               @   sØ   e Zd ZdZdZddgZddgZdgZdZd	Z	d
Z
ejejB Zddefde
f eeeeƒƒfde
e
f eeeeƒƒfde
f eeeeƒeeƒƒfde
e
f eeeeƒƒfde eeeƒfde	f efdeeƒfgiZdS )r   z`
    Lexer for `Docker <http://docker.io>`_ configuration files.

    .. versionadded:: 2.0
    ZDockerZdockerZ
dockerfileZ
Dockerfilez*.dockerztext/x-dockerfile-configz2(?:FROM|MAINTAINER|EXPOSE|WORKDIR|USER|STOPSIGNAL)z-(?:RUN|CMD|ENTRYPOINT|ENV|ARG|LABEL|ADD|COPY)z(?:\s*\\?\s*)r&   z#.*z(ONBUILD)(%s)z(HEALTHCHECK)((%s--\w+=\w+%s)*)z*(VOLUME|ENTRYPOINT|CMD|SHELL)(%s)(\[.*?\])z(LABEL|ENV|ARG)((%s\w+=\w+%s)*)z(%s|VOLUME)\b(.*)z(%s)z(.*\\\n)*.+N)r1   r2   r3   r4   r5   r6   r7   r8   Z	_keywordsZ_bash_keywordsZ_lbrt   rv   ru   rc   r	   r   r   r   r   r   r   r;   r.   r.   r.   r/   r     s*   

c               @   sx  e Zd ZdZdZddgZdgZddgZd<Ze	dƒe	dƒe	dƒe	dƒe	dƒde
fged=ddd�ejfdejdfdejfdeejeeƒfed>ddd�ejd$feeddd�ejfd%ejd&fgd'eeeeƒfe	dƒe	dƒgd%ejd(fed?ddd�ejfe	dƒe	dƒd.efd/ejd0fgd1eejƒfgd2efgd3ejfd/ejfgd4ejfd5ejd(fd6ejd0fd7ejfgd8efd.efd9efgd:œ	Zd;S )@r   zc
    Lexer for `terraformi .tf files <https://www.terraform.io/>`_.

    .. versionadded:: 2.1
    Z	TerraformZ	terraformÚtfz*.tfzapplication/x-tfzapplication/x-terraformÚingressÚegressÚlistenerr   Ú
connectionÚaliasÚtagsÚ	lifecycleÚtimeoutsrh   ÚpunctuationÚcurlyÚbasicÚ
whitespacez[0-9]+ÚtrueÚfalsez\b)rp  r]   z\s*/\*rQ   z\s*#.*\nz(.*?)(\s*)(=)ÚvariableÚresourceÚproviderÚprovisionerÚmoduleÚfunctionz\$\{Úvar_builtinz(\s+)(".*")(\s+)z#pushÚconcatÚfileÚjoinÚlookupÚelementz\s+z\}z#popz(".*")z
[\[\](),.]z\{z[^*/]z/\*z\*/z[*/]z\nz\\\n)	r&   r‡  r�  r‘  rh   r…  r†  rQ   rˆ  N)	r}  r~  r  r   r€  r�  r‚  rƒ  r„  )r‰  rŠ  )r‹  rŒ  r�  rŽ  r�  )r’  r“  r”  r•  r–  )r1   r2   r3   r4   r5   r6   r7   r8   Zembedded_keywordsr   r   r   r   rl   r	   Ú	Multiliner9   r   r   r:   r   r
   rm   ro   r   rq   rA   re   r   r;   r.   r.   r.   r/   r   5  sR   





c            	   @   s¬   e Zd ZdZdZdgZddgZg Zdefde	j
dfgded	fd
edfdefde	jfgdefdedfdeeeƒfdedfd
efde	jfgdefd
ed	fdefdefgdœZdS )r   zm
    Lexer for termcap database source.

    This is very simple and minimal.

    .. versionadded:: 2.1
    ZTermcapZtermcapztermcap.srcz^#.*$z
^[^\s#:|]+Únamesz\nz#popú:Údefsz\|z[^:|]+z
\\\n[ \t]*z\n[ \t]*z#pop:2z(#)([0-9]+)rq  Údataz	[^\s:=#]+z\\072z[^:\\]+rj   )r&   r˜  rš  r›  N)r1   r2   r3   r4   r5   r6   r7   r8   r	   r   rw   r   r   r:   r   r
   r   rn   r   r;   r.   r.   r.   r/   r   ~  s*   	

c            
   @   s¾   e Zd ZdZdZdgZddgZg Zdefde	j
dfgded	fd
eeeƒdfdefde	jfgdefdedfdeeeƒfdedfd
eeeƒfde	jfgdefd
eeeƒd	fdefdefgdœZdS )r    zn
    Lexer for terminfo database source.

    This is very simple and minimal.

    .. versionadded:: 2.1
    ZTerminfoZterminfozterminfo.srcz^#.*$z
^[^\s#,|]+r˜  z\nz#popz(,)([ \t]*)rš  z\|z[^,|]+z\n[ \t]+z#pop:2z(#)([0-9]+)rq  r›  z	[^\s,=#]+z\\[,\\]z[^\\,]+rj   )r&   r˜  rš  r›  N)r1   r2   r3   r4   r5   r6   r7   r8   r	   r   rw   r   r   r   r:   r
   r   rn   r   r;   r.   r.   r.   r/   r    ¬  s*   	

c            	   @   s°   e Zd ZdZdZdgZdgZg Zdej	fde
ejeƒfde
ejeƒdfed	ƒd
efdefgdefdejdfgdejdfdejfged	ƒdej	dfdedfdefdefgdœZdS )r!   z¾
    Lexer for `pkg-config
    <http://www.freedesktop.org/wiki/Software/pkg-config/>`_
    (see also `manual page <http://linux.die.net/man/1/pkg-config>`_).

    .. versionadded:: 2.1
    Z	PkgConfigZ	pkgconfigz*.pcz#.*$z	^(\w+)(=)z^([\w.]+)(:)ÚspvalueÚinterpz[^${}#=:\n.]+rj   z\$\$z\$\{r†  z\}z#popz\w+z\nz
[^${}#\n]+)r&   r�  r†  rœ  N)r1   r2   r3   r4   r5   r6   r7   r8   r	   r9   r   r   r:   r
   rw   r   r   r   r   rq   r;   r.   r.   r.   r/   r!   Ú  s*   


c            
   @   sp   e Zd ZdZdZdgZdgZg Zddej	fde
fdeejeeƒfd	eeejeƒfeddd�ejfdefgiZdS )r"   a˜  
    Lexer for `pacman.conf
    <https://www.archlinux.org/pacman/pacman.conf.5.html>`_.

    Actually, IniLexer works almost fine for this format,
    but it yield error token. It is because pacman.conf has
    a form without assignment like:

        UseSyslog
        Color
        TotalDownload
        CheckSpace
        VerbosePkgLists

    These are flags to switch on.

    .. versionadded:: 2.1
    Z
PacmanConfZ
pacmanconfzpacman.confr&   z#.*$z^\s*\[.*?\]\s*$z(\w+)(\s*)(=)z^(\s*)(\w+)(\s*)$ú$repoú$archú%oú%uz\b)r]   rj   N)rž  rŸ  r   r¡  )r1   r2   r3   r4   r5   r6   r7   r8   r	   r9   r   r   r   r:   r   r
   r   rB   r;   r.   r.   r.   r/   r"     s(      c               @   s  e Zd ZdZdZdgZdgZdeej	e
ej	ƒfdeeje
ejƒfdeeje
ƒfdeeejeejeƒfd	ejd
fdefdefdejdfdejdfdeej	eejƒfdejfde
fgdejfdejfdejdfgdejfdejfdejdfgdejfd	ejdfdejdfdejfgdœZdS )r#   zM
    Lexer for `Augeas <http://augeas.net>`_.

    .. versionadded:: 2.4
    ZAugeasZaugeasz*.augz(module)(\s*)([^\s=]+)z(let)(\s*)([^\s=]+)zV(del|store|value|counter|seq|key|label|autoload|incl|excl|transform|test|get|put)(\s+)z8(\()([^:]+)(\:)(unit|string|regexp|lens|tree|filter)(\))z\(\*rQ   z[*+\-.;=?|]z
[()\[\]{}]rg   rh   z\/Úregexz([A-Z]\w*)(\.)(\w+)rj   z\sz\\.z[^"]z#popz[^/]z[^*)]z#pushz\*\)z[)*])r&   rh   r¢  rQ   N)r1   r2   r3   r4   r5   r6   r7   r   r   rz  r   r   ro   rB   rA   r   rl   r	   r—  r
   r   re   r{  rr   r;   r.   r.   r.   r/   r#   K  s4   




c               @   s–   e Zd ZdZdZdgZdgZddefdej	fde
fd	e
fd
e
fdejfdefdefdejfdejfdejfdejfdejfdefdefdefgiZdS )r$   zƒ
    Lexer for `TOML <https://github.com/toml-lang/toml>`_, a simple language
    for config files.

    .. versionadded:: 2.4
    ZTOMLZtomlz*.tomlr&   z\s+z#.*?$z"(\\\\|\\"|[^"])*"z\'\'\'(.*)\'\'\'z
\'[^\']*\'z(true|false)$z[a-zA-Z_][\w\-]*z\[.*?\]$z>\d{4}-\d{2}-\d{2}(?:T| )\d{2}:\d{2}:\d{2}(?:Z|[-+]\d{2}:\d{2})z'(\d+\.\d*|\d*\.\d+)([eE][+-]?[0-9]+)?j?z\d+[eE][+-]?[0-9]+j?z[+-]?(?:(inf(?:inity)?)|nan)z[+-]?\d+z[]{}:(),;[]z\.rq  N)r1   r2   r3   r4   r5   r6   r7   r   r	   r9   r   r   ru  r   r   rd   rp   r   r
   r;   r.   r.   r.   r/   r$   w  s*   )+r4   rt   Zpygments.lexerr   r   r   r   r   r   Zpygments.tokenr   r	   r
   r   r   r   r   r   r   r   Zpygments.lexers.shellr   Zpygments.lexers.datar   Ú__all__r   r   r   rH   r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r.   r.   r.   r/   Ú<module>
   s:    0,M=* .!I..89,