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.17.97-1~5 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=6b26022f82d3d332ac5d2d7bb9ac7496e5e0963f;p=lilypond.git 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 53b3b4608c..d1a305325b 100644 --- a/lily/parser.yy +++ b/lily/parser.yy @@ -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); } ;