]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/parser.yy
Clean up nested property settings.
[lilypond.git] / lily / parser.yy
index 4bf3c9d191e98d5585404c45d16b2aa3858fb2ed..eea08ee94c567d9fe7b598cd15da2537ebdf8bc8 100644 (file)
@@ -410,7 +410,7 @@ If we give names, Bison complains.
 %type <scm> pitch_also_in_chords
 %type <scm> post_events
 %type <scm> property_operation
-%type <scm> property_path
+%type <scm> property_path property_path_revved
 %type <scm> scalar
 %type <scm> script_abbreviation
 %type <scm> simple_chord_elements
@@ -1124,15 +1124,21 @@ context_change:
        ;
 
 
-property_path:
+property_path_revved:
        embedded_scm {
                $$ = scm_cons ($1, SCM_EOL);
        }
-       | property_path embedded_scm {
+       | property_path_revved embedded_scm {
                $$ = scm_cons ($2, $1);
        }
        ;
 
+property_path:
+       property_path_revved  {
+               $$ = scm_reverse_x ($1, SCM_EOL);
+       } 
+       ;
+
 property_operation:
        STRING '=' scalar {
                $$ = scm_list_3 (ly_symbol2scm ("assign"),