File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/pygments/lexers/__pycache__/arturo.cpython-310.pyc
Back
o ;j�, � @ 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-present 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/>`_. ZArturoZarturoZartz*.artzhttps://arturo-lang.io/z2.14c K s$ t |dd�| _tj| fi |�� d S )N�handle_annotatedsT)r r r �__init__)�self�options� r �J/opt/saltstack/salt/lib/python3.10/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 rUz||�d�� � �}W n tyT Y nw |�d�}|du rh|�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 Zget_tokens_unprocessed)r �matchr Zlexer�coder r r �handle_annotated_strings( s$ �� z$ArturoLexer.handle_annotated_stringsz;.*?$z^((\s#!)|(#!)).*?$)�false�true�maybez\b)�suffix)r �initz\b\??:?)�prefixr. 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[^|"]+rP z[^|\n]+u »»»u [^|»]+z\\[sSwWdDbBZApPxucItnvfr0]+z\/\}z[^|\/]+z\:\}z[^|<:]+z\}z[^|<}]+z\Zz[^|<]+)F�all�and�any�ascii�attrZ attributeZattributeLabel�binaryZ blockchar�containsZdatabase�date� dictionary�emptyZequalZevenZevery�existsr+ Zfloatin�functionZgreaterZgreaterOrEqual�if�in�inline�integer�is�keyZlabelZleapZlessZlessOrEqual�literalZlogical�lower�nand�negative�nor�notZnotEqual�null�numericZodd�or�pathZ pathLabelZpositiver0 Zprime�setZsome�sortedZ standalone�stringZsubsetr. ZsupersetZymbolr, �try�type�unless�upperZwhen� whitespace�word�xnor�xorZzeroz\b\?)��abs�acos�acoshZacsecZacsechZactanZactanh�addZafter�alphabetrU Zangle�append�arg�argsZarity�array�asZasecZasech�asin�asinh�atan�atan2�atanhrX �attrsZaverage�beforeZ benchmarkZblend�breakZ builtins1Z builtins2�call� capitalize�case�ceilZchop�chunk�clear�closeZclusterZcolor�combineZconj�continue�copy�cos�coshZcoupleZcsecZcsechZctanZctanhZcursorZdarken�dec�decodeZdecoupleZdefine�deleteZ desaturateZ deviationr\ � difference�digest�digitsZdivZdo�downloadZdrop�dup�e�elser] �encodeZensure�env�epsilon�escapeZexecute�exit�exp�extend�extractZfactorsr+ Zfdiv�filter�first�flatten�floor�fold�fromr_ �gamma�gcd�getZgoto�hash�help�hypotr` ra Zinc�indent�indexZinfinity�info�input�insert�inspect�intersection�invert�join�keysZkurtosis�lastZletZlevenshteinZlighten�listZln�logZlooprg Zmail�mapr( �maxr- Zmedian�min�mod�module�mulrh �neg�newrj � normalizerk �nowrl �openrn Zoutdent�padZpanicro �pauseZpermissionsZ permutate�pi�pop�powZpowersetZpowmodr0 �printZprints�process�product�query�random�range�readZrelative�remove�renameZrender�repeat�replace�request�return�reverse�round�sampleZsaturateZscriptZsecZsech�selectZserverp ZshlZshr�shuffle�sin�sinh�sizeZskewness�slice�sort�split�sqrtZsqueeze�stackr'