From: David Kastrup Date: Wed, 7 Dec 2011 16:26:25 +0000 (+0100) Subject: parser.yy: Fixes and amendments with regard to lyrics. X-Git-Tag: release/2.15.22-1~31 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;ds=sidebyside;h=31f966aeebd6a0fd0a97d78634baa922a6c65c11;p=lilypond.git parser.yy: Fixes and amendments with regard to lyrics. --- diff --git a/lily/parser.yy b/lily/parser.yy index 728bc66193..ab0af30f1e 100644 --- a/lily/parser.yy +++ b/lily/parser.yy @@ -344,7 +344,6 @@ If we give names, Bison complains. %token FRACTION %token LYRICS_STRING %token LYRIC_ELEMENT -%token LYRIC_ELEMENT_P %token LYRIC_MARKUP_IDENTIFIER %token MARKUP_FUNCTION %token MARKUP_LIST_FUNCTION @@ -1359,10 +1358,10 @@ function_arglist_backup: // well: see how we do this at the mandatory argument // point. if (scm_is_true (scm_call_1 ($2, $4))) - $$ = scm_cons ($3, $2); + $$ = scm_cons ($4, $3); else { $$ = scm_cons (loc_on_music (@3, $1), $3); - MYBACKUP (LYRIC_MARKUP_IDENTIFIER, $4, @4); + MYBACKUP (LYRICS_STRING, $4, @4); } } | EXPECT_OPTIONAL EXPECT_SCM function_arglist_closed_keep UNSIGNED @@ -1524,7 +1523,7 @@ function_arglist_common_lyric: if (scm_is_true (scm_call_1 ($1, lyric_event))) { $$ = $2; - MYREPARSE (@3, $1, LYRIC_ELEMENT_P, $3); + MYREPARSE (@3, $1, LYRICS_STRING, $3); } else { $$ = scm_cons ($3, $2); } @@ -2769,7 +2768,6 @@ lyric_element: | LYRICS_STRING { $$ = $1; } - | LYRIC_ELEMENT_P ; lyric_element_arg: