From: David Kastrup Date: Fri, 6 Dec 2013 21:45:16 +0000 (+0100) Subject: Issue 3706: Allow computed identifiers for \change X-Git-Tag: release/2.19.0-1~90 X-Git-Url: https://git.donarmstrong.com/?p=lilypond.git;a=commitdiff_plain;h=4b18c6338f6ba1f899e8de1da4fa8883f7929c3c Issue 3706: Allow computed identifiers for \change This makes it possible to write \change #'Staff = #"high" (or other computed expressions) just like it is possible with \new #'Staff = #"high" { ... } --- diff --git a/lily/parser.yy b/lily/parser.yy index 1c8e527b4e..79a4b1114f 100644 --- a/lily/parser.yy +++ b/lily/parser.yy @@ -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); } ;