/*
This file is part of LilyPond, the GNU music typesetter.
- Copyright (C) 2004--2011 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ Copyright (C) 2004--2014 Han-Wen Nienhuys <hanwen@xs4all.nl>
LilyPond is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
scm_set_port_line_x (port, scm_from_int (ps->start_location_.line_number () - 1));
scm_set_port_column_x (port, scm_from_int (ps->start_location_.column_number () - 1));
- SCM form = scm_read (port);
+ bool multiple = ly_is_equal (scm_peek_char (port), SCM_MAKE_CHAR ('@'));
+
+ if (multiple)
+ (void) scm_read_char (port);
+ SCM form = scm_read (port);
SCM to = scm_ftell (port);
+
ps->nchars = scm_to_int (to) - scm_to_int (from);
if (!SCM_EOF_OBJECT_P (form))
// Replace form with a call to previously compiled closure
form = scm_list_1 (c);
}
+ if (multiple)
+ form = scm_list_3 (ly_symbol2scm ("apply"),
+ ly_symbol2scm ("values"),
+ form);
return scm_cons (form, make_input (ps->start_location_));
}
scm_remember_upto_here_1 (form);
return ans;
}
-