]> 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 08:16:37 +0000 (09:16 +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 1c8e527b4e46ae56d1a26b418edcb530a6021838..79a4b1114f214c70cd8942e8bd6273e1e417a880 100644 (file)
@@ -2208,8 +2208,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);
        }
        ;