]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lily-lexer.cc
lily/source-file.cc (get_line): fix off-by-one error
[lilypond.git] / lily / lily-lexer.cc
index c4f2731cac66e0460eada184ecc2158827d8d271..2392f47b363d63917061b20583dd43ec9a18b01b 100644 (file)
@@ -74,7 +74,6 @@ static Keyword_ent the_key_tab[]
   {"time", TIME_T},
   {"times", TIMES},
   {"transpose", TRANSPOSE},
-  {"transposition", TRANSPOSITION},
   {"type", TYPE},
   {"unset", UNSET},
   {"with", WITH},
@@ -170,7 +169,7 @@ Lily_lexer::set_current_scope ()
 }
 
 int
-Lily_lexer::lookup_keyword (std::string s)
+Lily_lexer::lookup_keyword (string s)
 {
   return keytable_->lookup (s.c_str ());
 }
@@ -189,7 +188,7 @@ Lily_lexer::lookup_identifier_symbol (SCM sym)
 }
 
 SCM
-Lily_lexer::lookup_identifier (std::string name)
+Lily_lexer::lookup_identifier (string name)
 {
   return lookup_identifier_symbol (ly_symbol2scm (name.c_str ()));
 }
@@ -219,7 +218,7 @@ Lily_lexer::set_identifier (SCM name, SCM s)
     {
       if (lookup_keyword (ly_symbol2string (sym)) >= 0)
        {
-         std::string symstr = ly_symbol2string (sym);
+         string symstr = ly_symbol2string (sym);
          warning (_f ("identifier name is a keyword: `%s'", symstr.c_str ()));
        }