]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/parser.yy
web-es: Nits.
[lilypond.git] / lily / parser.yy
index 422eb1b9b46b4f41181b910dcea443ed34d0833c..d2f3a8c4dc9e9f0eae7f1512c673fbeabadcdf6d 100644 (file)
@@ -1013,9 +1013,7 @@ simultaneous_music:
        ;
 
 simple_music:
-       event_chord {
-                PARSER->lexer_->chord_repetition_.last_chord_ = $$;
-       }
+       event_chord
        | MUSIC_IDENTIFIER
        | music_property_def
        | context_change
@@ -1442,7 +1440,13 @@ event_chord:
                $$ = MAKE_SYNTAX ("multi-measure-rest", i, $2, $3);
        }
        | command_element
-       | note_chord_element
+       /* note chord elements are memorized into
+          PARSER->lexer_->chord_repetition_ so that the chord repetition
+          mechanism copy them when a chord repetition symbol is found
+       */
+       | note_chord_element    {
+               PARSER->lexer_->chord_repetition_.last_chord_ = $$;
+       }
        ;