Changed comment regex to handle no EOL at EOF.