MS Notepad) wasn't found if the file started with a definition of
an identifier. Thanks to "Decade"!
return type;
}
-<INITIAL,chords,lyrics,figures,notes>{BOM_UTF8} {
+ /* Use the trailing context feature. Otherwise, the BOM will not be
+ found if the file starts with an identifier definition. */
+<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 ());