GOP punishes York County lawmaker