|
From: | Hans Aberg |
Subject: | Re: BOM mark from Windows notepad |
Date: | Fri, 13 Nov 2009 14:23:00 +0100 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |