]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lily-lexer.cc
Doc-es: update Extending/Scheme tutorial.
[lilypond.git] / lily / lily-lexer.cc
index c58885a89542771b29cc503f8531d60033b52a29..221d048cc00aa9a0f67f2f963b5932a43475328d 100644 (file)
@@ -37,8 +37,6 @@ using namespace std;
 #include "lily-parser.hh"
 #include "ly-module.hh"
 
-using std::string;
-
 static Keyword_ent the_key_tab[]
 =
 {
@@ -287,6 +285,8 @@ Lily_lexer::set_identifier (SCM path, SCM val)
           SCM prev = ly_module_lookup (mod, sym);
           if (scm_is_true (prev))
             val = nested_property_alist (scm_variable_ref (prev), path, val);
+          else
+            val = nested_create_alist (path, val);
         }
       scm_module_define (mod, sym, val);
     }