#somelayername {
    [feature = 'highway_motorway'],
    [feature = 'highway_motorway_link'] {
      /* code for any motorway */
      [feature = 'highway_motorway_link'] {
        /* code specific for links */
      }
    }
}