File: //usr/lib/python3/dist-packages/pygments/lexers/__pycache__/lilypond.cpython-310.pyc
o
���a! � @ s� d Z ddlZddlmZmZmZ ddlmZ ddlm Z m
Z
mZmZm
Z
mZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZ ddlmZ dgZ dZ!e!fd d
�Z"G dd� de�Z#dS )z�
pygments.lexers.lilypond
~~~~~~~~~~~~~~~~~~~~~~~~
Lexer for LilyPond.
:copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
� N)�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 C s@ d}|dkr|d7 }n|dkr|d7 }n|dksJ �t | ||�S )Nz[\-_^]?� mandatoryz\\�optionalz\\?�
disallowed)r )�names� backslash�suffix�prefix� r$ �:/usr/lib/python3/dist-packages/pygments/lexers/lilypond.py�
builtin_words s
r&