lilypond-auto
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Lilypond-auto] Issue 2939 in lilypond: Patch: Fix relations between \ma


From: lilypond
Subject: [Lilypond-auto] Issue 2939 in lilypond: Patch: Fix relations between \maininput, EOF and safe mode
Date: Wed, 31 Oct 2012 11:39:12 +0000

Status: Started
Owner: address@hidden
Labels: Type-Enhancement Patch-new

New issue 2939 by address@hidden: Patch: Fix relations between \maininput, EOF and safe mode
http://code.google.com/p/lilypond/issues/detail?id=2939

Fix relations between \maininput, EOF and safe mode

In lexer.ll, assumptions about the depth of include_stack_ were hardwired
that only were valid for parsers started from the normal chain of input.

One consequence was that something like

    #{ \book { \include "line-arrows.ly" } #}

worked even in safe mode (where \include should be prohibited) but
might complain about unexpected EOF.  This commit adds a member
variable main_input_level to Lily_lexer for keeping track of when to
drop restrictions and deliver EOF in each parser separately.

http://codereview.appspot.com/6823058




reply via email to

[Prev in Thread] Current Thread [Next in Thread]