]> git.donarmstrong.com Git - lilypond.git/commit
Refactor grammar to give \addlyrics a good target to attach to
authorDavid Kastrup <dak@gnu.org>
Mon, 8 Sep 2014 09:01:56 +0000 (11:01 +0200)
committerDavid Kastrup <dak@gnu.org>
Sun, 14 Sep 2014 05:44:55 +0000 (07:44 +0200)
commit4015468c822eae4e9421ca6640b0ecf6e75e8d7d
tree5ee61372ec0a1639ff66ba475d1b04edc66d72b9
parent5c2efacf079a69d97da4466dd1179530759bc114
Refactor grammar to give \addlyrics a good target to attach to

So far,

    \new Staff \new Voice { c1 } \addlyrics { Oh } \addlyrics { Ah }

was factored as

    \new Staff \new Voice { { c1 } \addlyrics { Oh } \addlyrics { Ah } }

which resulted in something like

   \new Staff \new Voice
     << \context Voice = "uniqueContext0" { c1 }
        \new Lyrics \lyricsto "uniqueContext0" { Oh }
        \new Lyrics \lyricsto "uniqueContext0" { Ah }
     >>

This made it impossible to work with the likes of

  \new Staff \new Voice \with { \stemUp } { c1 } \addlyrics ...

since the voice the lyrics attached to was always a new voice.
Fixing the grouping in the grammar is a first required step for getting
this under control.
lily/parser.yy