]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 3706: Allow computed identifiers for \change
authorDavid Kastrup <dak@gnu.org>
Fri, 6 Dec 2013 21:45:16 +0000 (22:45 +0100)
committerDavid Kastrup <dak@gnu.org>
Sun, 8 Dec 2013 09:32:57 +0000 (10:32 +0100)
This makes it possible to write

\change #'Staff = #"high"

(or other computed expressions) just like it is possible with

\new #'Staff = #"high" { ... }

lily/parser.yy

index 53b3b4608cbb84aed680735529137be9e861d4f0..d1a305325be68d648aa0e516f8610842fc371971 100644 (file)
@@ -2155,8 +2155,8 @@ re_rhythmed_music:
        ;
 
 context_change:
-       CHANGE STRING '=' STRING  {
-               $$ = MAKE_SYNTAX ("context-change", @$, scm_string_to_symbol ($2), $4);
+       CHANGE symbol '=' simple_string  {
+               $$ = MAKE_SYNTAX ("context-change", @$, $2, $4);
        }
        ;