On 13 Nov 2009, at 12:25, Bertalan Fodor (LilyPondTool) wrote:
<INITIAL,chords,lyrics,figures,notes>{BOM_UTF8}/.* {
if (this->lexloc->line_number () != 1 || this->lexloc->column_number
() != 0)
{
LexerError (_ ("stray UTF-8 BOM encountered").c_str ());
exit (1);
Also, the conditions and the stuff following might possibly be
removed. Something like:
{BOM_UTF8} {}
or
{BOM_UTF8}+ {}
If a language always zips out spaces, one can have rules:
[ \f\r\t\v]+ {}
\n+ { \* Maybe action here counting lines */ }
Then the BOM should just be treated as the other spaces and tabs.
Hans
_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel