From 95e4b7f9d22b54ae991ac6d1a8026667eadc1e8f Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Sun, 25 Aug 2013 19:36:11 +0200 Subject: [PATCH] Issue 3517: Parse composite music in context modifications in \notemode This allows for context mods like \new Staff \with { \transposition f' } { c'4 d' e' f' } --- lily/parser.yy | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lily/parser.yy b/lily/parser.yy index 5ac60f65bc..48dc5680b3 100644 --- a/lily/parser.yy +++ b/lily/parser.yy @@ -627,7 +627,16 @@ context_def_spec_block: context_mod_arg: embedded_scm - | composite_music + | + { + SCM nn = parser->lexer_->lookup_identifier ("pitchnames"); + parser->lexer_->push_note_state (nn); + } + composite_music + { + parser->lexer_->pop_state (); + $$ = $2; + } ; context_mod_embedded: -- 2.39.5