]> git.donarmstrong.com Git - lilypond.git/commit
Issue 3297: Make lexer more robust against unexpected EOF in main input
authorDavid Kastrup <dak@gnu.org>
Sun, 8 Sep 2013 21:50:16 +0000 (23:50 +0200)
committerDavid Kastrup <dak@gnu.org>
Sun, 15 Sep 2013 09:03:38 +0000 (11:03 +0200)
commitb31d2d00b7693b32197da28de2fdb9e3069d7bbc
treef58d7bddc35b4c615d92275f1e04bd3ba63d0f4b
parentb90c35d90388f7febb6cef6978913bdab8514a43
Issue 3297: Make lexer more robust against unexpected EOF in main input

This approach works by letting Lily_lexer::pop_state not cross the
maininput threshold.  Since Lily_lexer::pop_state is the "cooked" form
of yy_pop_state (also hiding the extratoken machinery), this keeps the
"maininput" state firmly under the lexer's control and avoids exiting
it prematurely.
lily/lexer.ll