From: David Kastrup <dak@gnu.org>
Date: Tue, 2 Oct 2012 14:43:11 +0000 (+0200)
Subject: Assignments can't contain literal lyric music (wrong lexer mode)
X-Git-Tag: release/2.17.6-1~37
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=6950b3e065410d54e1c55fa5c5c296318842709c;p=lilypond.git

Assignments can't contain literal lyric music (wrong lexer mode)

Since assignments can't happen in lyrics mode (only in INITIAL mode or
the initial music mode), there is no point in supporting
non-mode-switching items on the right side of assignments that can
only occur in lyrics mode.
---

diff --git a/lily/parser.yy b/lily/parser.yy
index 13f071a288..193655cb35 100644
--- a/lily/parser.yy
+++ b/lily/parser.yy
@@ -1033,7 +1033,6 @@ music_arg:
 music_assign:
 	simple_music
 	| composite_music %prec COMPOSITE
-	| lyric_element_music
 	;
 
 repeated_music: