]> 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>
Fri, 19 Oct 2012 10:28:05 +0000 (12:28 +0200)
This fixes hard to understand restrictions when combining music
function calls with post-events.

lily/parser.yy

index b7d9df12140de7e098fa524a1f9a8d9231220f1c..020a998886de9d5ea9f791d1da66c7926664e3ac 100644 (file)
@@ -516,7 +516,7 @@ If we give names, Bison complains.
 %type <scm> mode_changing_head
 %type <scm> mode_changing_head_with_context
 %type <scm> multiplied_duration
-%type <scm> music_function_event
+%type <scm> music_function_call_closed
 %type <scm> music_function_chord_body
 %type <scm> new_chord
 %type <scm> new_lyrics
@@ -1328,6 +1328,7 @@ closed_music:
        {
                $$ = FINISH_MAKE_SYNTAX ($1, @$, $2);
        }
+       | music_function_call_closed
        ;
 
 music_bare:
@@ -2275,7 +2276,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);
@@ -2346,7 +2347,7 @@ post_event_nofinger:
        direction_less_event {
                $$ = $1;
        }
-       | script_dir music_function_event {
+       | script_dir music_function_call_closed {
                $$ = $2;
                if ($1)
                {