Homoclinic snaking of localized patterns in a spatially forced system.