]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lily-parser.cc
Issue 2935: is_main_input_ should only be set by \maininput command
[lilypond.git] / lily / lily-parser.cc
index 7b35f0e8e478c5b9a3cf3b7c26a18ab4fc418145..550f6fb84743f298cbfd1da60ab1e23bcaa67b06 100644 (file)
@@ -143,7 +143,6 @@ void
 Lily_parser::parse_string (string ly_code)
 {
   lexer_->main_input_name_ = "<string>";
-  lexer_->is_main_input_ = true;
   lexer_->new_input (lexer_->main_input_name_, ly_code, sources_);
 
   SCM mod = lexer_->set_current_scope ();
@@ -161,7 +160,6 @@ Lily_parser::parse_string_expression (string ly_code, string filename,
                                       int line)
 {
   lexer_->main_input_name_ = filename;
-  lexer_->is_main_input_ = true;
   lexer_->new_input (lexer_->main_input_name_, ly_code, sources_);
   if (line)
     {