]> git.donarmstrong.com Git - lilypond.git/commit
Allow music functions to recognize strings as markup.
authorNeil Puttock <n.puttock@gmail.com>
Thu, 12 Nov 2009 21:28:24 +0000 (21:28 +0000)
committerNeil Puttock <n.puttock@gmail.com>
Fri, 13 Nov 2009 20:01:32 +0000 (20:01 +0000)
commit071453b302c30541d28c7397e1dd335366961eaa
tree385f0481898410ed071f2503903b96f72baf0564
parent0ee593365a6f758c0e4d76c548a086bca3e9740b
Allow music functions to recognize strings as markup.

Though strings count as markup according to the type predicate `markup?',
passing a string to a music function is currently only possible if the
type predicate is `string?' or `scm?'

This patch adds parser rules which support strings passed as markup, thus
making it easier to define music functions which default to using strings
unless extra formatting is required.
input/regression/music-function-string-markup.ly [new file with mode: 0644]
lily/parser.yy