Fixed a parsing problem with comments at the end of files.