]> git.donarmstrong.com Git - lilypond.git/commit
Issue 3815: Parser: harmonize \lyricsto and \addlyrics arguments
authorDavid Kastrup <dak@gnu.org>
Thu, 16 Jan 2014 10:25:23 +0000 (11:25 +0100)
committerDavid Kastrup <dak@gnu.org>
Tue, 21 Jan 2014 12:24:11 +0000 (13:24 +0100)
commit940767af99f39411e3e519a75968be11d47e3083
tree2d4194574e2c3d88f3b950f41f8b7b96883dc964
parent9d481c2337e71dd7aef16ff696c6cf497d0d8865
Issue 3815: Parser: harmonize \lyricsto and \addlyrics arguments

Previously, they allowed arbitrary music but since that required looking
at lookahead tokens in the wrong mode, it led to strange errors like with
lyr=\lyricsto A { }
mus={c}
when mus= was parsed as a single token in lyrics mode.  Now both \addlyrics
and \lyricsto accept merely the same kind of delimited argument list
that \lyrics or \chords accept.  Additionally, to preserve compatibility
to a lot of examples, music identifiers like \mus are permitted as the
argument to \lyricsto and \addlyrics.

Since this requires a change in existing uses, this includes a
convert-ly rule that removes redundant uses of \lyricmode and
rearranges the combination with context starters such that \lyricsto
in general is applied last, like \lyricmode would be.
lily/parser.yy
python/convertrules.py