HEX
Server: Apache/2.4.67 (Debian)
System: Linux vps-b2547eb4 6.1.0-41-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.158-1 (2025-11-09) x86_64
User: root (0)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/pygments/lexers/__pycache__/lilypond.cpython-311.pyc
�

�E�c&����dZddlZddlmZmZmZmZddlmZddl	m
Z
mZmZm
Z
mZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZddlm Z dgZ!dZ"e"fd	�Z#Gd
�de��Z$dS)z�
    pygments.lexers.lilypond
    ~~~~~~~~~~~~~~~~~~~~~~~~

    Lexer for LilyPond.

    :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�bygroups�default�inherit�words)�SchemeLexer)�keywords�pitch_language_names�clefs�scales�repeat_types�units�chord_modifiers�pitches�music_functions�dynamics�
articulations�music_commands�markup_commands�grobs�translators�contexts�context_properties�grob_properties�scheme_functions�paper_variables�header_variables)�Token�
LilyPondLexerz(?=\d|[^\w\-]|[\-_][\W\d])c�h�d}|dkr|dz
}n|dkr|dz
}n|dksJ�t|||��S)Nz[\-_^]?�	mandatoryz\\�optionalz\\?�
disallowed)r)�names�	backslash�suffix�prefixs    �:/usr/lib/python3/dist-packages/pygments/lexers/lilypond.py�
builtin_wordsr($sW��
�F��K����%����	�j�	 �	 ��&�����L�(�(�(�(�����'�'�'�c	�<��eZdZdZdZdZdgZdgZgZe	j
e	jzZ�fd�Z
gdejjf�dejjf�d	ejjf�d
ejdf�dejd
f�dejf�eedez���ejf�dejdf�dejjf�dejjf�dejf�dejf�dejjjf�dejjjf�dejjjf�e e!d��ej"f�e e#d��ejj$f�e e%d��ejjj&f�e e'd��ejjj(f�e e)d��ejjj*f�e e+d��ejf�e e,d��ej-f�e e.d��ejjj/f�e e0d��ejjj1f�e e2d��ejjjf�e e3d��ejjj4f�e e5d��ejjj6f�e e7d��ejjj8f�e e9d��ejjj:f�e e;d��ejjj<f�e e=d��ejjj>f�e e?d��ejjj@df�e eAd��ejjjBf�e eCd��ejjjDf�dezejjEf�dejjFf�d ezejf�d!ejf�d"ejdfd#ejjGfd$ejfgd%ejd&feHgdejjfd'ezeIejejjj@��feJd��gd(�ZK�xZLS))rz�
    Lexer for input to LilyPond, a text-based music typesetter.

    .. important::

       This lexer is meant to be used in conjunction with the ``lilypond`` style.

    .. versionadded:: 2.11
    �LilyPondzhttps://lilypond.org�lilypondz*.lyc#�H�K�t���|��D]|\}}}|tjjus|tjjur |tvrtjjj}n)|tjjurtjjj	}|||fV��}dS)z@Highlight Scheme variables as LilyPond builtins when applicable.N)
�super�get_tokens_unprocessedr�Name�Function�Variabler�Builtin�SchemeFunction�
SchemeBuiltin)�self�text�index�token�value�	__class__s     �r'r/z$LilyPondLexer.get_tokens_unprocessedLs������#(�7�7�#A�#A�$�#G�#G�	&�	&��E�5�%���
�+�+�+�u��
�8K�/K�/K��,�,�,�!�J�.�=�E���%�*�,�,�,��
�*�8�����%�%�%�%�%�
	&�	&r)z\s+z	%\{.*?%\}z%.*?$z#\}�#popz[#$]@?r:zm(?x)
               \\\\
               | (?<= \s ) (?: -- | __ )
               | [{}<>=.,:|]
              z=?[',]*!?\??)r%z[\-_^]?"�stringz
-?\d+\.\d+z	-?\d+/\d+z�(?x)
               (?<= \s ) -\d+
               | (?: (?: \d+ | \\breve | \\longa | \\maxima )
                     \.* )
              z\*z[~()[\]]z[\-_^][>^_!.\-+]z
[\-_^]?\\?\d+r r"r!�maybe-subpropertiesz[\-_^]?\\.+?zg(?x)
               (?: [^\W\d] | - )+
               (?= (?: [^\W\d] | [\-.] )* \s* = )
              z
([^\W\d]|-)+?�.�"z\\.z[^\\"]+z#\{)r<�rootz(\.)((?:[^\W\d]|-)+?))rAr=r:r>)M�__name__�
__module__�__qualname__�__doc__�name�url�aliases�	filenames�	mimetypes�re�DOTALL�	MULTILINE�flagsr/r�Text�
Whitespace�Comment�	Multiline�Single�Punctuationrr�NAME_END_RE�Pitch�String�Number�Float�Fractionr0r3�Articulationr(r�Keywordr	�
PitchLanguager
�Clefr�Scaler�
RepeatTyper
r�
ChordModifierr�
MusicFunctionr�Dynamicrr�MusicCommandr�
MarkupCommandr�Grobr�
Translatorr�Contextr�ContextPropertyr�GrobPropertyr�
PaperVariabler�HeaderVariable�BackslashReference�Lvalue�Escaperrr�tokens�
__classcell__)r;s@r'rr/s�����������D�
 �C��l�G���I��I��I���$�E�&�&�&�&�&�u
�
�U�Z�*�+�u
�
�5�=�2�3�u
��u�}�+�,�u
��U�&��/�u
� ��)�7�3�!u
�>��$�	
&�?u
�N�U�7�?�[�#@�
A�
A�
A�5�;�O�Ou
�T�%�,��1�Uu
�Z�E�L�.�/�[u
�\�5�<�0�1�]u
�n��<�	
!�ou
�z�E�L�!�{u
�@�%�*�,�9�:�Au
�H!�%�*�"4�"A�B�Iu
�N�u�z�1�>�?�Ou
�T�]�8�[�
1�
1�5�=�A�Uu
�V�]�/��
>�
>��
�@X�Y�Wu
�X�]�5�,�
/�
/���1C�1H�I�Yu
�Z�]�6�;�
/�
/���1C�1I�J�[u
�\�]�<��
6�
6��
�8J�8U�V�]u
�^�]�5�+�
.�
.���=�_u
�`�]�?�L�
9�
9�5�;N�O�au
�b�]�?�K�
8�
8�%�*�:L�:Z�[�cu
�d�]�8�[�
1�
1�5�:�3E�3M�N�eu
�h�]�=�+�
6�
6��
�8J�8W�X�iu
�j�]�>�;�
7�
7���9K�9X�Y�ku
�l�]�?�K�
8�
8�%�*�:L�:Z�[�mu
�n�]�5�,�
/�
/���1C�1H�I�ou
�p�]�;��
5�
5�u�z�7I�7T�U�qu
�t�]�8�Z�
0�
0�%�*�2D�2L�M�uu
�v�]�-�|�
<�
<�e�j�>P�>`�a�wu
�x�]�?�L�
9�
9�
�Z�
�
,�
"�
$�yu
�D�]�?�J�
7�
7���9K�9Y�Z�Eu
�F�]�+�Z�
8�
8�%�*�:L�:[�\�Gu
�N�{�
*�E�J�,I�J�Ou
�V��:�$�
&�Wu
�f��
+�U�Z�8�gu
�h�5�:��iu
�n�5�<��(�
�U�\�(�)�
���&�
��U�&�(8�9��	
��U�Z�*�+�
%��
3�
�X�e�'���);�)H�
I�
I�
K��G�F�O�O�	 
�ML�L�F�F�F�F�Fr))%rErK�pygments.lexerrrrr�pygments.lexers.lispr�"pygments.lexers._lilypond_builtinsrr	r
rrr
rrrrrrrrrrrrrrr�pygments.tokenr�__all__rUr(r�r)r'�<module>rxs�����
�	�	�	�<�<�<�<�<�<�<�<�<�<�<�<�,�,�,�,�,�,�����������������������������������������������!� � � � � ��
��,��+6�(�(�(�(�s�s�s�s�s�K�s�s�s�s�sr)