]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 3748: Allow assignments with property paths to use x.y.z = value syntax
authorDavid Kastrup <dak@gnu.org>
Sun, 22 Dec 2013 19:38:22 +0000 (20:38 +0100)
committerDavid Kastrup <dak@gnu.org>
Wed, 25 Dec 2013 17:08:00 +0000 (18:08 +0100)
This is actually an embarrassing oversight in issue 2883: while it
became possible to rewrite

    markup-system-spacing #'minimum-distance = #25
as
    markup-system-spacing minimum-distance = #25

it has been overlooked to allow for the obvious

    markup-system-spacing.minimum-distance = #25

lily/parser.yy

index d1a305325be68d648aa0e516f8610842fc371971..f6baee2096eeb0fbcdf78a8bfa08f73ba4b5d993 100644 (file)
@@ -575,6 +575,11 @@ assignment:
                parser->lexer_->set_identifier (path, $4);
                 $$ = SCM_UNSPECIFIED;
        }
+       | assignment_id '.' property_path '=' identifier_init {
+               SCM path = scm_cons (scm_string_to_symbol ($1), $3);
+               parser->lexer_->set_identifier (path, $5);
+                $$ = SCM_UNSPECIFIED;
+       }
        ;