]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 3517: Parse composite music in context modifications in \notemode
authorDavid Kastrup <dak@gnu.org>
Sun, 25 Aug 2013 17:36:11 +0000 (19:36 +0200)
committerDavid Kastrup <dak@gnu.org>
Fri, 30 Aug 2013 07:21:14 +0000 (09:21 +0200)
This allows for context mods like

\new Staff \with { \transposition f' } { c'4 d' e' f' }

lily/parser.yy

index 5ac60f65bc4aa3c3aaf08bc10c494b0bf2a31a09..48dc5680b3bc5cae6b1d16fa962a50b68e2e8d96 100644 (file)
@@ -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: