a
    ¨ˆcì  ã                   @   sr   d Z ddlZddlmZmZmZmZ ddlmZm	Z	m
Z
mZ ddlmZmZmZmZmZ dgZG dd„ deƒZdS )zÒ
    pygments.lexers.ezhil
    ~~~~~~~~~~~~~~~~~~~~~

    Pygments lexers for Ezhil language.

    :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
é    N)Ú
RegexLexerÚincludeÚwordsÚbygroups)ÚKeywordÚTextÚCommentÚName)ÚStringÚNumberÚPunctuationÚOperatorÚ
WhitespaceÚ
EzhilLexerc                       sÒ   e Zd ZdZdZdZdgZdgZdgZdZ	e
dƒd	ejfd
efdejfeddd�ejfdejfdefe
dƒe
dƒdefg
defgde	 d e	 d efgdefdejfdejfgdœZdd„ Z‡ fdd„Z‡  ZS ) r   z`
    Lexer for Ezhil, a Tamil script-based programming language.

    .. versionadded:: 2.1
    ZEzhilzhttp://ezhillang.orgZezhilz*.nztext/x-ezhilu   [a-zA-Z_]|[஀-௿]Úkeywordsz#.*$z[@+/*,^\-%]|[!<>=]=?|&&?|\|\|?u	   இல்)ÚassertÚmaxÚminu   நீளம்u%   சரம்_இடமாற்றுu(   சரம்_கண்டுபிடிu   பட்டியல்u   பின்இணைu*   வரிசைப்படுத்துu	   எடுu   தலைகீழ்u   நீட்டிக்கu   நுழைக்கu   வைu   கோப்பை_திறu%   கோப்பை_எழுதுu"   கோப்பை_மூடுÚpiÚsinÚcosÚtanÚsqrtÚhypotÚpowÚexpÚlogÚlog10Úexitz\b)Úsuffixz(True|False)\bz[^\S\n]+Ú
identifierÚliteralz[(){}\[\]:;.]u�  பதிப்பி|தேர்ந்தெடு|தேர்வு|ஏதேனில்|ஆனால்|இல்லைஆனால்|இல்லை|ஆக|ஒவ்வொன்றாக|இல்|வரை|செய்|முடியேனில்|பின்கொடு|முடி|நிரல்பாகம்|தொடர்|நிறுத்து|நிரல்பாகம்z(?:z
)(?:[0-9]|z)*z".*?"z\d+((\.\d*)?[eE][+-]?\d+|\.\d*)z\d+)Úrootr   r    r!   c                 C   s   t t d| ¡ƒdkrdS dS )zöThis language uses Tamil-script. We'll assume that if there's a
        decent amount of Tamil-characters, it's this language. This assumption
        is obviously horribly off if someone uses string literals in tamil
        in another language.z[\u0b80-\u0bff]é
   g      Ð?N)ÚlenÚreÚfindall)Útext© r(   úX/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/pygments/lexers/ezhil.pyÚanalyse_textB   s    zEzhilLexer.analyse_textc                    s$   t ƒ jf i |¤Ž | dd¡| _d S )NÚencodingzutf-8)ÚsuperÚ__init__Úgetr+   )ÚselfÚoptions©Ú	__class__r(   r)   r-   J   s    zEzhilLexer.__init__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚurlÚaliasesÚ	filenamesÚ	mimetypesZ
_TALETTERSr   r   ÚSingler   ÚWordr   r	   ZBuiltinr   ÚConstantr   r   r
   r   ZFloatZIntegerÚtokensr*   r-   Ú__classcell__r(   r(   r1   r)   r      sB   ùùïÿÿýæ!)r6   r%   Zpygments.lexerr   r   r   r   Zpygments.tokenr   r   r   r	   r
   r   r   r   r   Ú__all__r   r(   r(   r(   r)   Ú<module>   s   
