On 20 September 2011 21:50, Benkő Pál <benko....@gmail.com> wrote:

> I don't know what to do, could you help me?

The attached patch works for me (haven't run make check on it though).

Cheers,
Neil
From f6f1ad62263b4dfb5f518da71891d3a0b30c89a3 Mon Sep 17 00:00:00 2001
From: Neil Puttock <n.putt...@gmail.com>
Date: Tue, 20 Sep 2011 22:18:55 +0100
Subject: [PATCH] parser.yy: Allow embedded_scm inside \book & and \bookpart

---
 lily/parser.yy |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lily/parser.yy b/lily/parser.yy
index 02c99e2..df3067b 100644
--- a/lily/parser.yy
+++ b/lily/parser.yy
@@ -791,6 +791,7 @@ book_body:
 	| book_body lilypond_header {
 		$$->header_ = $2;
 	}
+	| book_body embedded_scm { }
 	| book_body error {
 		$$->paper_ = 0;
 		$$->scores_ = SCM_EOL;
@@ -843,6 +844,7 @@ bookpart_body:
 	| bookpart_body lilypond_header {
 		$$->header_ = $2;
 	}
+	| bookpart_body embedded_scm { }
 	| bookpart_body error {
 		$$->paper_ = 0;
 		$$->scores_ = SCM_EOL;
-- 
1.7.4.1

_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to