diff --git a/ChangeLog b/ChangeLog index f81b817..cbc399f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-11-20 Riccardo Mottola + + * Modules/Parsers/ProjectCenter/PCParser.m + Force last action on parser if file lacks a new line at EOF. + 2014-11-20 Riccardo Mottola * Modules/Parsers/ProjectCenter/ObjCCommentHandler.m diff --git a/Modules/Parsers/ProjectCenter/PCParser.m b/Modules/Parsers/ProjectCenter/PCParser.m index bfcb223..c277599 100644 --- a/Modules/Parsers/ProjectCenter/PCParser.m +++ b/Modules/Parsers/ProjectCenter/PCParser.m @@ -210,6 +210,10 @@ CodeType codeType(unichar *ch) } } } + /* send an extra new line if the file did not terminate with such. + Forces the parser to close pending actions */ + if (codeType(_uchar+_length) != SpaceAndNewLineCodeType) + (*impSpaceAndNewLine)(_handler, selSpaceAndNewLine, 0X0A); } @end