]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 2949: Allow (closed) scheme function calls as text scripts.
authorDavid Kastrup <dak@gnu.org>
Mon, 5 Nov 2012 22:13:07 +0000 (23:13 +0100)
committerDavid Kastrup <dak@gnu.org>
Sat, 10 Nov 2012 09:23:42 +0000 (10:23 +0100)
One motivation of recent grammar changes was to make scheme variables
identical to markup variables.  The obvious parallel idea of letting
scheme function calls be available for calculating markups has not
received similar attention.

The purpose of this patch is to allow for using scheme function calls
producing markup within text scripts.

lily/parser.yy

index eb8f8cbcc9c57ec85166ab5ad73011152699b90c..4eb488a37f53fed2e4a34e3a944b629e3352c49f 100644 (file)
@@ -2774,7 +2774,7 @@ gen_text_def:
                        make_simple_markup ($1));
                $$ = t->unprotect ();
        }
-       | embedded_scm_bare
+       | embedded_scm_closed
        {
                Music *m = unsmob_music ($1);
                if (m && m->is_mus_type ("post-event"))