Author: rmottola
Date: Thu Nov 20 10:44:42 2014
New Revision: 38189
URL: http://svn.gna.org/viewcvs/gnustep?rev=38189&view=rev
Log:
Force last action on parser if file lacks a new line at EOF
Modified:
apps/projectcenter/trunk/ChangeLog
apps/projectcenter/trunk/Modules/Parsers/ProjectCenter/PCParser.m
Modified: apps/projectcenter/trunk/ChangeLog
URL:
http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/trunk/ChangeLog?rev=38189&r1=38188&r2=38189&view=diff
==============================================================================
--- apps/projectcenter/trunk/ChangeLog (original)
+++ apps/projectcenter/trunk/ChangeLog Thu Nov 20 10:44:42 2014
@@ -1,3 +1,8 @@
+2014-11-20 Riccardo Mottola <[email protected]>
+
+ * Modules/Parsers/ProjectCenter/PCParser.m
+ Force last action on parser if file lacks a new line at EOF.
+
2014-11-20 Riccardo Mottola <[email protected]>
* Modules/Parsers/ProjectCenter/ObjCCommentHandler.m
Modified: apps/projectcenter/trunk/Modules/Parsers/ProjectCenter/PCParser.m
URL:
http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/trunk/Modules/Parsers/ProjectCenter/PCParser.m?rev=38189&r1=38188&r2=38189&view=diff
==============================================================================
--- apps/projectcenter/trunk/Modules/Parsers/ProjectCenter/PCParser.m
(original)
+++ apps/projectcenter/trunk/Modules/Parsers/ProjectCenter/PCParser.m Thu Nov
20 10:44:42 2014
@@ -210,6 +210,10 @@
}
}
}
+ /* 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
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs