Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(124)

Issue 322090043: Allow $... to specify a markup command (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
6 years, 10 months ago by dak
Modified:
5 years, 9 months ago
Reviewers:
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Allow $... to specify a markup command This is a partial (though more flexible) substitute for \on-the-fly since it allows to replace \on-the-fly #(lambda (layout props args) ...) with $(let ((fun (lambda (layout props args) ...))) (set! (markup-command-signature fun) (list markup?)) fun) Namely: ad-hoc written functions (probably most useful when written using macros) can be employed as markup commands when preceded with $ as long as they have a suitable markup command signature attached. This feature is mainly added for consistency with music functions. Lexer: factor out push_markup_predicates

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -12 lines) Patch
M lily/include/lily-imports.hh View 1 chunk +1 line, -0 lines 0 comments Download
M lily/include/lily-lexer.hh View 1 chunk +1 line, -0 lines 0 comments Download
M lily/lexer.ll View 3 chunks +33 lines, -12 lines 0 comments Download
M lily/lily-imports.cc View 1 chunk +1 line, -0 lines 0 comments Download

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b