]> git.donarmstrong.com Git - lilypond.git/commit
Issue 2854: parser.yy: remove STRING_IDENTIFIER token
authorDavid Kastrup <dak@gnu.org>
Sat, 22 Sep 2012 13:35:42 +0000 (15:35 +0200)
committerDavid Kastrup <dak@gnu.org>
Wed, 26 Sep 2012 08:48:00 +0000 (10:48 +0200)
commitaaa81de1e2e7e5c69b9ad3639f12227fb83c3828
tree94971b08e4e923fd65011b9ac289c5cec79fcf24
parentfe92075e94be52ddb5b1e9b5c6e2f5fcc44c5d59
Issue 2854: parser.yy: remove STRING_IDENTIFIER token

A STRING_IDENTIFIER always was a special case of a MARKUP_IDENTIFIER
without being treated equally at top level.  That led to craziness
like

xxx=\markup "test"
\xxx

being invalid, while

xxx=\markup \italic "test"
\xxx

was valid code.  This change just removes the STRING_IDENTIFIER
category altogether.  Where it was used previously, MARKUP_IDENTIFIER
is accepted now syntactically, and where the semantics indeed require
a plain string, an error is generated explicitly in the action instead
of leaving it to the parser to complain about bad grammar.
lily/parser.yy