U
    luf                     @   sb   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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-2023 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
    N)
RegexLexerincludewords)Keyword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 )zThis 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&   9/tmp/pip-unpacked-wheel-7eq1ciah/pygments/lexers/ezhil.pyanalyse_textC   s    zEzhilLexer.analyse_textc                    s    t  jf | |dd| _d S )Nencodingzutf-8)super__init__getr)   )selfoptions	__class__r&   r'   r+   K   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&   r/   r'   r      sB   !)r4   r#   Zpygments.lexerr   r   r   Zpygments.tokenr   r   r   r   r	   r
   r   r   __all__r   r&   r&   r&   r'   <module>   s
   
(