--- parser3/src/main/compile.y 2001/07/25 10:33:05 1.151 +++ parser3/src/main/compile.y 2001/07/25 11:16:57 1.152 @@ -6,7 +6,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) */ %{ -static char *RCSId="$Id: compile.y,v 1.151 2001/07/25 10:33:05 parser Exp $"; +static char *RCSId="$Id: compile.y,v 1.152 2001/07/25 11:16:57 parser Exp $"; /** @todo parser4: @@ -103,7 +103,7 @@ static int yylex(YYSTYPE *lvalp, void *p %left NEG /* negation: unary - */ %% -all: +all: one_big_piece { Method& method=*NEW Method(POOL, *main_method_name, @@ -636,6 +636,13 @@ static int yylex(YYSTYPE *lvalp, void *p // USER'S = NOT OURS case LS_USER: + if(PC.skipping_bof_empty_lines) + if(c=='\n') { + begin=PC.source; + begin_line=PC.line; + continue; // skip it + } + PC.skipping_bof_empty_lines=false; switch(c) { case '$': push_LS(PC, LS_VAR_NAME_SIMPLE);