JME: deal with comments at the end of lines