I am puzzled - my first thought was that some character had crept into the end of the file which was confusing to Lazarus. I used a hex editor to compare a working lfm with the failing lfm but could not see any difference, as mentioned by JuhaManninen it is a pure text file. Neither could I find anything that indicated the file length. EOF is I understand a term that can mean different things according to the system using the file, I wonder what the IDE regards as EOF.