summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorJean-Abou-Samra <37271310+Jean-Abou-Samra@users.noreply.github.com>2021-12-28 18:08:01 +0100
committerGitHub <noreply@github.com>2021-12-28 18:08:01 +0100
commit7dea301f7f3baa2c5a585a90ab8d8c30332ef562 (patch)
tree10a590e58b0497d2d085c94c1aca62fc464791bf /external
parent7ec67ea2af7f32d1d864f804bd5c17e8f89fbe21 (diff)
downloadpygments-git-7dea301f7f3baa2c5a585a90ab8d8c30332ef562.tar.gz
Some LilyPond updates (#2001)
- Add pitch language names to builtins. They are not highlighted specially in the default style, but can be in a custom style. - Refactor matching of builtins in order to avoid confusion between dim chord modifier and \dim dynamic command. - Support grob subproperties. - Add segno repeat type. - While at it, update builtins for latest version.
Diffstat (limited to 'external')
-rw-r--r--external/lilypond-builtins-generator.ly15
1 files changed, 8 insertions, 7 deletions
diff --git a/external/lilypond-builtins-generator.ly b/external/lilypond-builtins-generator.ly
index db39061c..6b3a88e6 100644
--- a/external/lilypond-builtins-generator.ly
+++ b/external/lilypond-builtins-generator.ly
@@ -1,6 +1,6 @@
%% Autogenerate a list of LilyPond keywords
-\version "2.23.4"
+\version "2.23.6"
#(use-modules (ice-9 receive)
(ice-9 regex))
@@ -139,7 +139,7 @@
%% REPEAT TYPES
#(define all-repeat-types
- '(volta percent unfold))
+ '(volta percent unfold segno))
#(dump-py-list 'repeat_types all-repeat-types)
@@ -159,15 +159,16 @@
%% PITCHES
+#(define all-pitch-language-names
+ (map car language-pitch-names))
+
+#(dump-py-list 'pitch_language_names all-pitch-language-names)
+
#(define all-pitch-names
(append
; We highlight rests just like pitches.
'(r R)
- (apply append
- (map
- (lambda (lang)
- (map car (cdr lang)))
- language-pitch-names))
+ (map car (append-map cdr language-pitch-names))
; Drum note names.
(map car drumPitchNames)))