fix bug in parser when files end in a comment