aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/Pygments/py3/pygments/styles/lilypond.py
diff options
context:
space:
mode:
authornkozlovskiy <nmk@ydb.tech>2023-09-29 12:24:06 +0300
committernkozlovskiy <nmk@ydb.tech>2023-09-29 12:41:34 +0300
commite0e3e1717e3d33762ce61950504f9637a6e669ed (patch)
treebca3ff6939b10ed60c3d5c12439963a1146b9711 /contrib/python/Pygments/py3/pygments/styles/lilypond.py
parent38f2c5852db84c7b4d83adfcb009eb61541d1ccd (diff)
downloadydb-e0e3e1717e3d33762ce61950504f9637a6e669ed.tar.gz
add ydb deps
Diffstat (limited to 'contrib/python/Pygments/py3/pygments/styles/lilypond.py')
-rw-r--r--contrib/python/Pygments/py3/pygments/styles/lilypond.py56
1 files changed, 56 insertions, 0 deletions
diff --git a/contrib/python/Pygments/py3/pygments/styles/lilypond.py b/contrib/python/Pygments/py3/pygments/styles/lilypond.py
new file mode 100644
index 0000000000..a90b697846
--- /dev/null
+++ b/contrib/python/Pygments/py3/pygments/styles/lilypond.py
@@ -0,0 +1,56 @@
+"""
+ pygments.styles.lilypond
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+
+ LilyPond-specific style.
+
+ :copyright: Copyright 2006-2023 by the Pygments team, see AUTHORS.
+ :license: BSD, see LICENSE for details.
+"""
+
+from pygments.style import Style
+from pygments.token import Token
+
+class LilyPondStyle(Style):
+ """
+ Style for the LilyPond language.
+
+ .. versionadded:: 2.11
+ """
+
+ # Don't show it in the gallery, it's intended for LilyPond
+ # input only and doesn't show good output on Python code.
+ web_style_gallery_exclude = True
+
+ styles = {
+ Token.Text: "",
+ Token.Keyword: "bold",
+ Token.Comment: "italic #A3AAB2",
+ Token.String: "#AB0909",
+ Token.String.Escape: "#C46C6C",
+ Token.String.Symbol: "noinherit",
+ Token.Pitch: "", #"#911520",
+ Token.Number: "#976806", # includes durations
+ # A bare 11 is not distinguishable from a number, so we highlight
+ # the same.
+ Token.ChordModifier: "#976806",
+ Token.Name.Lvalue: "#08547A",
+ Token.Name.BackslashReference: "#08547A",
+ Token.Name.Builtin.MusicCommand: "bold #08547A",
+ Token.Name.Builtin.PaperVariable: "bold #6C5A05",
+ Token.Name.Builtin.HeaderVariable: "bold #6C5A05",
+ Token.Name.Builtin.MusicFunction: "bold #08547A",
+ Token.Name.Builtin.Clef: "bold #08547A",
+ Token.Name.Builtin.Scale: "bold #08547A",
+ Token.Name.Builtin.RepeatType: "#08547A",
+ Token.Name.Builtin.Dynamic: "#68175A",
+ Token.Name.Builtin.Articulation: "#68175A",
+ Token.Name.Builtin.SchemeFunction: "bold #A83401",
+ Token.Name.Builtin.SchemeBuiltin: "bold",
+ Token.Name.Builtin.MarkupCommand: "bold #831E71",
+ Token.Name.Builtin.Context: "bold #038B8B",
+ Token.Name.Builtin.ContextProperty: "#038B8B",
+ Token.Name.Builtin.Grob: "bold #0C7441",
+ Token.Name.Builtin.GrobProperty: "#0C7441",
+ Token.Name.Builtin.Translator: "bold #6200A4",
+ }