]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lexer.ll
Imported Upstream version 2.16.1
[lilypond.git] / lily / lexer.ll
index 57b9a599678027aa95bde7c06854beeeb65893f8..9fb4cb6d558429e8d76811d6cb2922ab1da9f6d0 100644 (file)
@@ -694,7 +694,7 @@ BOM_UTF8    \357\273\277
                   reflect after.
                */ 
                is_main_input_ = include_stack_.size () > 2;
-               if (!close_input ())
+               if (!close_input () || !is_main_input_)
                /* Returns YY_NULL */
                        yyterminate ();
        }