]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/parser.yy
Issue 3517: Parse composite music in context modifications in \notemode
[lilypond.git] / 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: