Optimise parse_comment by not storing the comment string as it will
not be used and simplify the code slightly.