HOME


Mini Shell 1.0
DIR: /lib/python3/dist-packages/pygments/lexers/__pycache__/
Upload File :
Current File : //lib/python3/dist-packages/pygments/lexers/__pycache__/vip.cpython-312.pyc
�

|�eQ���dZddlZddlmZmZmZmZddlmZm	Z	m
Z
mZmZm
Z
mZmZmZddgZGd�de�ZGd	�de�ZGd
�de�Zy)z�
    pygments.lexers.vip
    ~~~~~~~~~~~~~~~~~~~

    Lexers for Visual Prolog & Grammar files.

    :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�
RegexLexer�inherit�words�include)	�Text�Comment�Operator�Keyword�Name�String�Number�Punctuation�
Whitespace�VisualPrologLexer�VisualPrologGrammarLexerc�"�eZdZdZdZdZdefeedd��ejfdefeed�	�ejfd
e
fde
fdejjfd
ejfdejfdefdedfdedfdej dfdej dfdej dfdefdefdefgeedd��ej(fdefged�defd ed!fged�d"efded#fd$ed!fd%efgd&ej,fd'ej,fged(�dej d!fd)efd*ej,j.d!fged(�dej d!fd+efd*ej,j.d!fgd,ej,fdej d!fd-efgd.�Zy/)0�VisualPrologBaseLexer)�try�foreach�if)�and�catch�do�else�elseif�	erroneous�
externally�failure�finallyrr�or�orelse�	otherwise�thenr�div�mod�rem�quot)�short�detail�end�
withdomainz\s+z\bend\s+�\b��prefix�suffixr*�r/z0[xo][\da-fA-F_]+z(((\d[\d_]*)?\.)?\d[\d_]*([eE][\-+]?\d+)?z_\w*z[A-Z]\w*z@\w+z[a-z]\w*z/\*�commentz\%�commentline�"�stringz\'�stringsinglez@"�atstringz[\-+*^/!?<>=~:]+z[$,.[\]|(){}\\]+�.�@�
commentdocz[^@\n]+�$z#popz[^@*/]+z#pushz\*/z[*/]z\\u[0-9a-fA-F]{4}z\\[\'"ntr\\]�stringescapez
[^\'\\\n]+z\nz	[^"\\\n]+z""z[^"]+)�rootr9r2r1r;r5r4r6N)�__name__�
__module__�__qualname__�
minorendkw�
minorkwexp�dockwrrr
�Minorr
r�Variable�	Anonymousrr�Symbolr	rr�Preprocr�Escape�Error�tokens���5/usr/lib/python3/dist-packages/pygments/lexers/vip.pyrrs"��)�J�6�J�4�E��Z� �
�:�k�%�
@�'�-�-�P�
�W��
�:�e�
,�g�m�m�<�
!�6�*�
8�&�A�
�d�m�m�-�-�.�
�$�-�-�(�
�d�m�m�$�
�$��
�W�i�(�
�G�]�+�
�6�=�=�(�+�
�F�M�M�>�2�
�F�M�M�:�.�
 �(�+�
 �+�.�
�4�L�%
�*�5��e�
4�g�o�o�F�
�7�O�
�

�L�!�
��!�
�7�F�#�
�
�L�!�
��!�
�W�g�&�
�W�f�%�
�g��
�"�6�=�=�1�
�f�m�m�,�
�

�N�#�
�F�M�M�6�*�
�F�#�
�F�M�M�'�'��0�	
�
�N�#�
�6�=�=�&�)�
�6�"�
�F�M�M�'�'��0�	
��F�M�M�"�
�6�=�=�&�)�
�v��
�k:�FrLrc��eZdZdZdZdZdgZgd�ZdZdZ	dZ
d	ee	d
��ejfeed
��efee
dd
�
�ejfegiZd�Zy)rz7Lexer for VisualProlog

    .. versionadded:: 2.17
    z
Visual Prolog�https://www.visual-prolog.com/�visualprolog)z*.proz*.clz*.iz*.packz*.ph)�goal�	namespace�	interface�class�	implement�where�open�inherits�supports�resolve�delegate�monitor�	constants�domains�
predicates�constructors�
properties�clauses�facts)�align�anyflow�as�bitsize�determ�digitsrrr�from�guard�multi�	nondetermr r!r"�	procedurerZ�single�
suspending)�
binincluderr�endif�error�exportrrj�grammargenerate�grammarincluderr�message�options�
orrequires�requires�
stringincluder#r<r,r0�#r-c�2�tjd|�ryy)zMCompetes with IDL and Prolog on *.pro; div. lisps on*.cl and SwigLexer on *.izc^\s*(end\s+(interface|class|implement)|(clauses|predicates|domains|facts|constants|properties)\s*$)�\��(\�?r��re�search��texts rM�analyse_textzVisualPrologLexer.analyse_textos!��
�9�9�{�~B�C��rLN)r=r>r?�__doc__�name�url�aliases�	filenames�majorkw�minorkw�directivekwrr
rC�	DirectiverrJr�rKrLrMrrVs�����D�
*�C���G�:�I�~�G�{�G��K�	�
�7�5�
)�7�=�=�9�
�7�5�
)�7�3�
�;�s�5�
9�7�;L�;L�M��	
��F�rLc�~�eZdZdZdZdZdgZdgZdZdZ	de
ed	�
�efe
e	dd	��ejfe
giZd
�Zy)rz?Lexer for VisualProlog grammar

    .. versionadded:: 2.17
    zVisual Prolog GrammarrO�visualprologgrammarz*.vipgrm)rWrR�grammar�nonterminals�startsymbols�	terminals�rules�
precedence)rqr{r<r,r0r|r-c�2�tjd|�ryy)zNo competditors (currently)zN^\s*(end\s+grammar|(nonterminals|startsymbols|terminals|rules|precedence)\s*$)r~rrr�s rMr�z%VisualPrologGrammarLexer.analyse_text�s��
�9�9�f�hl�m��rLN)r=r>r?r�r�r�r�r�r�r�rr
r�rrJr�rKrLrMrrzsl���
#�D�
*�C�$�%�G���I�C�G�1�K��
�7�5�
)�7�3�
�;�s�5�
9�7�;L�;L�M��
��F�rL)r�r��pygments.lexerrrrr�pygments.tokenrrr	r
rrr
rr�__all__rrrrKrLrM�<module>r�sY���
�>�>�$�$�$�� :�
;��?�J�?�D!�-�!�H�4�rL