--- parser3/src/main/compile.y 2010/07/05 01:38:14 1.256 +++ parser3/src/main/compile.y 2010/07/25 06:44:45 1.258 @@ -5,7 +5,7 @@ Copyright (c) 2001-2009 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: compile.y,v 1.256 2010/07/05 01:38:14 misha Exp $ + $Id: compile.y,v 1.258 2010/07/25 06:44:45 misha Exp $ */ /** @@ -287,7 +287,7 @@ code_method: '@' STRING bracketed_maybe_ Method* method=new Method( //name, - GetMethodCallType(PC, LA2S(*$2)), + GetMethodCallType(PC, *$2), 0, 0/*min,max numbered_params_count*/, params_names, locals_names, 0/*to be filled later in next {} */, 0, all_vars_local); @@ -1580,12 +1580,9 @@ default: break2: if(end!=begin) { // there is last piece? - if((c=='@' || c==0) && end[-1]=='\n') { // we are before LS_DEF_NAME or EOF? - // strip last \n - end--; - if(end!=begin && end[-1]=='\n') // allow one empty line before LS_DEF_NAME + if(c=='@' || c==0) // we are before LS_DEF_NAME or EOF? + while(end!=begin && end[-1]=='\n') // trim all empty lines before LS_DEF_NAME and EOF end--; - } if(end!=begin && pc.ls!=LS_USER_COMMENT) { // last piece still alive and not comment? if(!pc.string_start) pc.string_start=begin_pos;