Properly parse comments from the end of a line