
    V                     d    S r SSKrSSKJrJrJr  SSKJrJrJ	r	J
r
JrJrJr  S/r " S S\5      rg)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                      \ rS rSrSrSrSS/r/ rSr\	R                  \	R                  -  rS\4S\S	4S
\R                   4S\4SSR%                  \5      -  \" \\\5      4S\4\" \5      \4/S\4S\R0                  S4S\S4/S\" \\R0                  5      S4/S\R0                  S4S\R0                  S4S\" \\R0                  \\R0                  5      S4S\" \\R0                  \\R0                  \\R0                  \R2                  \R0                  \\R0                  \R                   \R0                  5      S4S\" \\R0                  \\R0                  \\R0                  5      S4S\R0                  4/S\" \\R                   \R0                  5      S4S\" \R4                  \R0                  5      S4S\R0                  S4S\R0                  4/S\R0                  S4S\R0                  S4S\4/S .rS! rS"rg#)$r      znLexer for `ICU Resource bundles
<http://userguide.icu-project.org/locale/resources>`_.

.. versionadded:: 2.0
ResourceBundle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                 2    U R                  S5      (       a  gg )Nz
root:tableg      ?)
startswith)texts    +lib/third_party/pygments/lexers/resource.pyanalyse_textResourceLexer.analyse_textR   s    ??<(( )     N)__name__
__module____qualname____firstlineno____doc__namealiases	filenames_typesre	MULTILINE
IGNORECASEflagsr   r   r   Integerr	   joinr   r   r
   r   r   EscapeWordTypetokensr    __static_attributes__r#   r"   r   r   r      sE   
 D,GI F LL2==(E  68$v~~&x $sxx'77dD'*,TN6]G$	
DEKMFMM9-66"	
 v}} =?RS
 FMM9-FMM6*'hwFPNhwxmmX]]FMM8mmV^^V]]DEMO .hwxmm%&.0 V]]#
 /h>	K',,!FNFMM#34V]]#
 FMM6*FMM9-
S.F`r"   )r(   r-   pygments.lexerr   r   r   pygments.tokenr   r   r   r	   r
   r   r   __all__r   r#   r"   r   <module>r;      s<    
 6 6   
@J @r"   