Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pygments/lexers/__pycache__/arturo.cpython-39.pyc
Ðазад
a a�h�, � @ s~ d Z ddlmZmZmZmZmZmZmZ ddl m Z mZmZm Z mZmZmZmZmZ ddlmZmZ dgZG dd� de�ZdS )z� pygments.lexers.arturo ~~~~~~~~~~~~~~~~~~~~~~ Lexer for the Arturo language. :copyright: Copyright 2006-2025 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. � )� RegexLexer�bygroups� do_insertions�include�this�using�words) �Comment�Error�Keyword�Name�Number�Operator�Punctuation�String�Text)� ClassNotFound�get_bool_opt�ArturoLexerc @ s� e Zd ZdZdZddgZdgZdZdZdd � Z d d� Z dejfd ej feddd�ejfedddd�ejjfdejfdejfdejfdejfdejfdejfdejfdejfdejfdeee e!�e�fdej"dfd ejd!fd"ej"d#fd$ejd%fd&ej"d'fd(e fd)ejd*fd+ejd,fe#d-�d.efed/�ej$fed0�e%fd1efd2e&j'fd3e(fgd4ej)d5fd6e e!�fgd7ej)d5fd6e e!�fged8�ej*fge#d9�d4ej)d:fd;ej)d<fdej"d5fd=efge#d9�d4ej)d:fd;ej)d<fd>ejd5fd?efge#d9�d4ej)d:fd;ej)d<fd@ej"d5fdAefgdBej*fd4ej)d:fd;ej)d<fdCejd5fdDej+fge#d9�d4ej)d:fd;ej)d<fdEej"d5fdFefge#d9�d4ej)d:fd;ej)d<fdGejd5fdHefge#d9�d4ej)d:fd;ej)d<fdIejd5fdJefgedKddLd�ejfedMddd�ejfgdN�Z,dOS )Pr z� For Arturo source code. See `Arturo's Github <https://github.com/arturo-lang/arturo>`_ and `Arturo's Website <https://arturo-lang.io/>`_. �Arturo�arturo�artz*.artzhttps://arturo-lang.io/z2.14c K s$ t |dd�| _tj| fi |�� d S )N�handle_annotatedsT)r r r �__init__)�self�options� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/pygments/lexers/arturo.pyr # s �zArturoLexer.__init__c c s ddl m} |�d�tj|�d�fV |�d�tj|�d�fV |�d�tj|�d�fV |�d�tj|�d�fV d}| j r�z||�d�� � �}W n ty� Y n0 |�d�}|du r�|�d�t|fV ntg |� |��E dH |�d �tj|�d �fV dS ) z�Adds syntax from another languages inside annotated strings match args: 1:open_string, 2:exclamation_mark, 3:lang_name, 4:space_or_newline, 5:code, 6:close_string r )�get_lexer_by_name� � � � N� � )Zpygments.lexersr �startr �Double�group�Interpolr � Whitespacer �stripr r �get_tokens_unprocessed)r �matchr �lexer�coder r r �handle_annotated_strings( s z$ArturoLexer.handle_annotated_stringsz;.*?$z^((\s#!)|(#!)).*?$)�false�true�maybez\b)�suffix)r �initz\b\??:?)�prefixr3 z`.`z\\\w+\b\??:?z#\w+z\b[0-9]+\.[0-9]+z\b[0-9]+z \w+\b\??:z\'(?:\w+\b\??:?)z\:\w+z \.\w+\??:?z(\()(.*?)(\)\?)�"�inside-simple-string� »�inside-smart-stringu «««�inside-safe-stringz\{\/�inside-regex-stringz\{\:�inside-curly-verb-stringz#(\{)(\!)(\w+)(\s|\n)([\w\W]*?)(^\})z\{�inside-curly-stringz\-{3,}�inside-eof-string�builtin-functionsz[()[\],])z->�==>�|z::�@�#�$�&�!z!!z./)$z<:z:>z:<z>:z<\z<>�<�>� øu ∞�+�-�*�~�=�^�%�/z//r@ z<=>z<==>z=>>z<<=>>z<<==>>z-->z<->z<-->z=|z|=z-:z:-�_�.z..�\z\b\w+z\s+z.+$z\|z#popz[^|]+z\|\|\>)z\\�\nz\tz\"� string-escape�inside-interpolz\<\|\|�inside-templatez[^|"]+rU z[^|\n]+u »»»u [^|»]+z\\[sSwWdDbBZApPxucItnvfr0]+z\/\}z[^|\/]+z\:\}z[^|<:]+z\}z[^|<}]+z\Zz[^|<]+)F�all�and�any�ascii�attr� attributeZattributeLabel�binaryZ blockchar�containsZdatabase�date� dictionary�empty�equalZevenZevery�existsr0 Zfloatin�functionZgreaterZgreaterOrEqual�if�in�inline�integer�is�key�labelZleap�lessZlessOrEqual�literalZlogical�lower�nand�negative�nor�notZnotEqual�null�numericZodd�or�pathZ pathLabelZpositiver5 �prime�setZsome�sorted� standalone�stringZsubsetr3 ZsupersetZymbolr1 �try�type�unless�upper�when� whitespace�word�xnor�xor�zeroz\b\?)��abs�acos�acoshZacsecZacsechZactanZactanh�add�after�alphabetrZ Zangle�append�arg�argsZarity�array�asZasecZasech�asin�asinh�atan�atan2�atanhr] �attrsZaverage�beforeZ benchmark�blend�breakZ builtins1Z builtins2�call� capitalize�case�ceilZchop�chunk�clear�closeZcluster�color�combineZconj�continue�copy�cos�cosh�coupleZcsecZcsechZctanZctanh�cursorZdarken�dec�decodeZdecouple�define�deleteZ desaturateZ deviationrb � difference�digest�digits�div�do�downloadZdrop�dup�e�elserc �encodeZensure�env�epsilon�escape�execute�exit�exp�extend�extractZfactorsr0 Zfdiv�filter�first�flatten�floor�fold�fromrf �gamma�gcd�getZgoto�hash�help�hypotrg rh �inc�indent�index�infinity�info�input�insert�inspect�intersection�invert�join�keysZkurtosis�lastZletZlevenshteinZlighten�list�ln�log�looprp �mail�mapr, �maxr2 Zmedian�min�mod�module�mulrq �neg�newrs � normalizert �nowru �openrw Zoutdent�pad�panicrx �pauseZpermissionsZ permutate�pi�pop�powZpowersetZpowmodr5 �printZprints�process�product�query�random�range�read�relative�remove�rename�render�repeat�replace�request�return�reverse�round�sampleZsaturate�script�secZsech�selectZserverz ZshlZshr�shuffle�sin�sinh�sizeZskewness�slice�sort�split�sqrtZsqueeze�stackr* �subr3 �sum�switch�symbols�symlink�sysZtake�tan�tanhZterminal�tor1 �truncater~ r �union�uniquer� ZuntilZunzipr� �values�varZvariance�volumeZwebview�while�withZwordwrap�writer� r� �zip)�rootrW rX rV r7 r9 r: r; r<