1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
"""
pygments.styles.lilypond
~~~~~~~~~~~~~~~~~~~~~~~~
LilyPond-specific style.
:copyright: Copyright 2006-2021 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
default_style = "#0000ff"
styles = {
Token.Whitespace: "",
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",
}
|