]> 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 08:38:21 +0000 (09:38 +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 65ed8e3fb8ce6b5d5902f444576542ba63a31f5e..e4355a50fbf36a6b039d7b4fd331f1d4dbd42fe0 100644 (file)
@@ -624,6 +624,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;
+       }
        ;