3
.ßL]u  ã               @   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-2019 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d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j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ResourceBundleÚresourceZresourcebundlez*.txtú:tableú:arrayú:stringú:binú:importú
:intvectorú:intú: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*)Ú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*\{)z([a-z]+)(\s*\{)Ústrz[^{}]+)Úrootr   r   r   r   r   c             C   s   | j dƒrdS d S )Nz
root:tableg      ð?)Ú
startswith)Útext© r!   ú>/tmp/pip-install-5sebvq2j/pygments/pygments/lexers/resource.pyÚanalyse_textS   s    
zResourceLexer.analyse_textN)r   r   r   r   r   r   r   r   )r   r   )r   r   )Ú__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      sR    









)r'   r,   Zpygments.lexerr   r   r   Zpygments.tokenr   r   r   r   r	   r
   r   Ú__all__r   r!   r!   r!   r"   Ú<module>
   s
   $