B
    `                 @   sj   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
 ddl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-2021 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
    N)
RegexLexerincludewords)KeywordTextCommentName)StringNumberPunctuationOperator
EzhilLexerc                   s   e Zd ZdZdZdgZdgZdgZej	ej
B 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   zy
    Lexer for `Ezhil, a Tamil script-based programming language <http://ezhillang.org>`_

    .. versionadded:: 2.1
    ZEzhilZezhilz*.nztext/x-ezhilu   [a-zA-Z_]|[஀-௿]keywordsz#.*\nz[@+/*,^\-%]|[!<>=]=?|&&?|\|\|?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#(?u)\d+((\.\d*)?[eE][+-]?\d+|\.\d*)z(?u)\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&   ]/home/kop/projects/devel/pgwui/test_venv/lib/python3.7/site-packages/pygments/lexers/ezhil.pyanalyse_textB   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+   J   s    zEzhilLexer.__init__)!__name__
__module____qualname____doc__namealiases	filenames	mimetypesr#   	MULTILINEUNICODEflagsZ
_TALETTERSr   r   Singler   Wordr   r   ZBuiltinr   ZConstantr   r   r	   r
   ZFloatZIntegertokensr(   r+   __classcell__r&   r&   )r/   r'   r      s2   )r3   r#   Zpygments.lexerr   r   r   Zpygments.tokenr   r   r   r   r	   r
   r   r   __all__r   r&   r&   r&   r'   <module>	   s   