X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Flexer.ll;h=8dd76671456cebaf4341527c55254fe61844b494;hb=5b4b0d6e9a197e8f9eb085b7c2ad78b8be3e5cfc;hp=b444704ea5890bd5b26d26d335a66a4c6a55baa2;hpb=7249e3be5b0ac3446f032414aa05e0a62cd16225;p=lilypond.git diff --git a/lily/lexer.ll b/lily/lexer.ll index b444704ea5..8dd7667145 100644 --- a/lily/lexer.ll +++ b/lily/lexer.ll @@ -4,7 +4,7 @@ source file of the LilyPond music typesetter - (c) 1996--2007 Han-Wen Nienhuys + (c) 1996--2008 Han-Wen Nienhuys Jan Nieuwenhuizen */ @@ -337,7 +337,7 @@ BOM_UTF8 \357\273\277 Input hi = here_input(); hi.step_forward (); SCM sval = ly_parse_scm (hi.start (), &n, hi, - be_safe_global && is_main_input_); + be_safe_global && is_main_input_, parser_); if (sval == SCM_UNDEFINED) { @@ -539,6 +539,8 @@ BOM_UTF8 \357\273\277 return MARKUP_HEAD_SCM0_MARKUP1; else if (tag == ly_symbol2scm ("scheme0-scheme1-markup2")) return MARKUP_HEAD_SCM0_SCM1_MARKUP2; + else if (tag == ly_symbol2scm ("scheme0-scheme1-markup2-markup3")) + return MARKUP_HEAD_SCM0_SCM1_MARKUP2_MARKUP3; else if (tag == ly_symbol2scm ("scheme0-markup1-markup2")) return MARKUP_HEAD_SCM0_MARKUP1_MARKUP2; else if (tag == ly_symbol2scm ("scheme0-scheme1-scheme2")) @@ -822,7 +824,8 @@ Lily_lexer::scan_bare_word (string str) else if (scm_is_symbol (yylval.scm)) return DRUM_PITCH; } - else if ((handle = scm_hashq_get_handle (chordmodifier_tab_, sym))!= SCM_BOOL_F) + else if ((YYSTATE == chords) + && (handle = scm_hashq_get_handle (chordmodifier_tab_, sym))!= SCM_BOOL_F) { yylval.scm = scm_cdr (handle); return CHORD_MODIFIER;