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

Unified Diff: lily/parser.yy

Issue 3743043: [Patch] make post-event music functions direction-aware (Closed)
Patch Set: More compact code Created 13 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « input/regression/music-function-post-event.ly ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lily/parser.yy
diff --git a/lily/parser.yy b/lily/parser.yy
index 94dacc5d3eebc2491fc96bd34c68eee5b658ece5..92c21c7194a7dc8c1002b6659dcecf6c3cf7da66 100644
--- a/lily/parser.yy
+++ b/lily/parser.yy
@@ -1706,8 +1706,12 @@ post_event:
direction_less_event {
$$ = $1;
}
- | '-' music_function_event {
+ | script_dir music_function_event {
$$ = run_music_function (PARSER, $2);
+ if ($1)
+ {
+ unsmob_music ($$)->set_property ("direction", scm_from_int ($1));
+ }
}
| HYPHEN {
if (!PARSER->lexer_->is_lyric_state ())
« no previous file with comments | « input/regression/music-function-post-event.ly ('k') | no next file » | no next file with comments »

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