U
    lufV  ã                   @   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 dgZG dd„ deƒZdS )zÙ
    pygments.lexers.resource
    ~~~~~~~~~~~~~~~~~~~~~~~~

    Lexer for resource definition files.

    :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é    N)Ú
RegexLexerÚbygroupsÚwords)ÚCommentÚStringÚNumberÚOperatorÚTextÚKeywordÚNameÚResourceLexerc                   @   sˆ  e Zd ZdZdZddgZg ZdZej	ej
B Zdefdedfd	ejfd
efdd e¡ eeeeƒfdefeeƒefgdefdejdfdedfgdeeejƒdfgdejdfdejdfdeeejeejƒdfdeeejeejeejejejeejejejƒdfdeeejeejeejƒdfdejfgdeeejejƒdfdeejejƒdfdejdfdejfgdejdfdejdfdefgdœZd d!„ Zd"S )#r   zzLexer for `ICU Resource bundles
    <http://userguide.icu-project.org/locale/resources>`_.

    .. versionadded:: 2.0
    ZResourceBundleZresourcebundleÚresource)z:tablez:arrayz:stringz:binz:importz
:intvectorz:intz:aliasz//.*?$ú"Ústringz-?\d+z[,{}]z([^\s{:]+)(\s*)(%s?)ú|z\s+zc(\\x[0-9a-f]{2}|\\u[0-9a-f]{4}|\\U00[0-9a-f]{6}|\\[0-7]{1,3}|\\c.|\\[abtnvfre\'"?\\]|\\\{|[^"{\\])+z\{Úmsgnameú#popz([^{},]+)(\s*))r   Úmessagez\}z(,)(\s*)([a-z]+)(\s*\})z>(,)(\s*)([a-z]+)(\s*)(,)(\s*)(offset)(\s*)(:)(\s*)(-?\d+)(\s*)Úchoicez(,)(\s*)([a-z]+)(\s*)(,)(\s*)z(=|<|>|<=|>=|!=)(-?\d+)(\s*\{)r   z([a-z]+)(\s*\{)Ústr)r   r   z[^{}]+)Úrootr   r   r   r   r   c                 C   s   |   d¡rdS d S )Nz
root:tableg      ð?)Ú
startswith)Útext© r   ú</tmp/pip-unpacked-wheel-7eq1ciah/pygments/lexers/resource.pyÚanalyse_textR   s    
zResourceLexer.analyse_textN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚaliasesÚ	filenamesÚ_typesÚreÚ	MULTILINEÚ
IGNORECASEÚflagsr   r   r   ZIntegerr   Újoinr   r   r	   r
   r   ZEscapeÚWordÚTypeÚtokensr   r   r   r   r   r      s€   
ÿ
øÿ
üÿ

 ÿ     þýÿþô ÿ
û

ý×0)r   r$   Zpygments.lexerr   r   r   Zpygments.tokenr   r   r   r   r	   r
   r   Ú__all__r   r   r   r   r   Ú<module>   s
   
$