]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/parser.yy
patch::: 1.1.52.mb2
[lilypond.git] / lily / parser.yy
index adc565e244b46f20b4a68cf9bbf9179355a9c9b0..78815d1cd2af7aca5b5e289f379cc77e9e870d2d 100644 (file)
@@ -173,6 +173,7 @@ yylex (YYSTYPE *s,  void * v_l)
 %token RELATIVE
 %token REMOVE
 %token REPEAT
+%token REPETITIONS
 %token SCM_T
 %token SCMFILE
 %token SCORE
@@ -1377,6 +1378,16 @@ simple_element:
                velt_p->add_music (m);
                $$ = velt_p;
        }
+       | REPETITIONS notemode_duration         {
+               Repetitions_req* r = new Repetitions_req;
+               r->duration_ = *$2;
+               delete $2;
+
+               Simultaneous_music*velt_p = new Request_chord;
+               velt_p->set_spot (THIS->here_input ());
+               velt_p->add_music (r);
+               $$ = velt_p;
+       }
        | STRING notemode_duration                      {
                if (!THIS->lexer_p_->lyric_state_b ())
                        THIS->parser_error (_ ("have to be in Lyric mode for lyrics"));