parse_protocol_file: support lines without end comments