]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 2840: Allow closed music function calls in closed music.
authorDavid Kastrup <dak@gnu.org>
Sun, 16 Sep 2012 17:10:26 +0000 (19:10 +0200)
committerDavid Kastrup <dak@gnu.org>
Sun, 16 Sep 2012 20:05:02 +0000 (22:05 +0200)
This fixes hard to understand restrictions when combining music
function calls with post-events.

lily/parser.yy

index e69f9f55175ccf2133824417cc8bb30586292dbd..981cf40bab5a40570601b3a2b517714b5755c88d 100644 (file)
@@ -1082,6 +1082,7 @@ closed_music:
        {
                $$ = FINISH_MAKE_SYNTAX ($1, @$, $2);
        }
+       | music_function_call_closed
        ;
 
 music_bare:
@@ -2029,7 +2030,7 @@ music_function_chord_body:
 // with the last argument of the event function or with the expression
 // for which the function call acts itself as event.
 
-music_function_event:
+music_function_call_closed:
        MUSIC_FUNCTION function_arglist_closed {
                $$ = MAKE_SYNTAX ("music-function", @$,
                                         $1, $2);
@@ -2100,7 +2101,7 @@ post_event_nofinger:
        direction_less_event {
                $$ = $1;
        }
-       | script_dir music_function_event {
+       | script_dir music_function_call_closed {
                $$ = $2;
                if (!SCM_UNBNDP ($1))
                {