Instead of mentioning the modes in which arbitrary strings would be
permissible, state that the string is not a note name. This is more
likely to be helpful to users, particularly in the case of wrong
notename language.
}
| STRING {
if (!parser->lexer_->is_lyric_state ())
- parser->parser_error (@1, _ ("unrecognized string, not in text script or \\lyricmode"));
+ parser->parser_error (@1, _f ("not a note name: %s", ly_scm2string ($1)));
$$ = $1;
}
| LYRIC_ELEMENT