]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/lexer.ll
2002-12-06 Han-Wen Nienhuys <hanwen@cs.uu.nl>
[lilypond.git] / lily / lexer.ll
index c78ee41cb6cdafbce2bf626bb92db31702ccd478..e9ea32de7b545dd3e99d00c182b20774c999cd3b 100644 (file)
@@ -135,7 +135,7 @@ HYPHEN              --
        // windows-suck-suck-suck
 }
 
-<INITIAL,chords,incl,lyrics,notes,figures>{
+<INITIAL,chords,incl,markup,lyrics,notes,figures>{
   "%{" {
        yy_push_state (longcomment);
   }
@@ -445,7 +445,7 @@ HYPHEN              --
                String str (YYText() + 1);
                SCM s = lookup_markup_command (str);
 
-               if (gh_pair_p (s)) {
+               if (gh_pair_p (s) && gh_symbol_p (gh_cdr (s)) ) {
                        yylval.scm = gh_car(s);
                        SCM tag = gh_cdr(s);
                        if (tag == ly_symbol2scm("markup0"))