Hi Alexander et al.!

As extender events are generated automatically now it probably is a
good idea to tell yacc / bison to recognize but ignore "__" tokens.

cu,
 Knut
>From 768bf54ad8563b0cb6c2cbce692385656db3a535 Mon Sep 17 00:00:00 2001
From: Knut Petersen <knut_peter...@t-online.de>
Date: Sat, 24 Dec 2016 21:09:40 +0100
Subject: [PATCH] Tell parser to ignore "__" token

There is not use for it now.

Signed-off-by: Knut Petersen <knut_peter...@t-online.de>
---
 lily/parser.yy | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lily/parser.yy b/lily/parser.yy
index 065713de1a..b446806a8b 100644
--- a/lily/parser.yy
+++ b/lily/parser.yy
@@ -3101,9 +3101,7 @@ post_event_nofinger:
 		$$ = MY_MAKE_MUSIC ("HyphenEvent", @$)->unprotect ();
 	}
 	| EXTENDER {
-		if (!parser->lexer_->is_lyric_state ())
-			parser->parser_error (@1, _ ("have to be in Lyric mode for lyrics"));
-		$$ = MY_MAKE_MUSIC ("ExtenderEvent", @$)->unprotect ();
+		$$ = SCM_UNSPECIFIED;
 	}
 	| script_dir direction_reqd_event {
 		if (!SCM_UNBNDP ($1))
-- 
2.11.0

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

Reply via email to