td->add_context_mod (scm_car (p));
}
} else {
- PARSER->parser_error (@2, "context-mod expected");
+ PARSER->parser_error (@2, _ ("not a context mod"));
}
}
| context_def_spec_body context_mod {
if (unsmob_context_mod ($2))
$$ = $2;
else {
- PARSER->parser_error (@2, "context-mod expected");
+ PARSER->parser_error (@2, _ ("not a context mod"));
$$ = Context_mod ().smobbed_copy ();
}
}
if (md)
unsmob_context_mod ($1)->add_context_mods (md->get_mods ());
}
+ | context_mod_list embedded_scm {
+ Context_mod *md = unsmob_context_mod ($2);
+ if (md)
+ unsmob_context_mod ($1)->add_context_mods (md->get_mods ());
+ else
+ PARSER->parser_error (@2, _ ("not a context mod"));
+ }
;
composite_music:
else if (Text_interface::is_markup_list ($1))
MYBACKUP (MARKUPLIST_IDENTIFIER, $1, @1);
else {
- PARSER->parser_error (@1, _("markup expected"));
+ PARSER->parser_error (@1, _ ("not a markup"));
MYBACKUP (MARKUP_IDENTIFIER, scm_string (SCM_EOL), @1);
}
} BACKUP