]> git.donarmstrong.com Git - lilypond.git/commit
Issue 3247: Prohibit non-postevents returned by music functions to be used as post...
authorDavid Kastrup <dak@gnu.org>
Sat, 16 Mar 2013 10:22:27 +0000 (11:22 +0100)
committerDavid Kastrup <dak@gnu.org>
Thu, 21 Mar 2013 06:23:00 +0000 (07:23 +0100)
commitbe1247a9a2f9884f4c6b92bb6b637917a544a951
tree4516a5283899b8f2a3bb7e9a39436e2035bf9f0d
parent9bba8cec6d52d276f45cd5c9a996fb237e518487
Issue 3247: Prohibit non-postevents returned by music functions to be used as post-events

For example,

{ c-\mark \default }

produced an invalid music expression more or less indistinguishable from

{ \mark \default c }

Worse is that things like

{ c-\tweak color #red { g } }

also got accepted.  While \tweak (and other music functions) may
indeed return either post-events or straight music expressions, there
should be checks in place that the usage corresponds to its type.
lily/parser.yy