Let the simple syrup cool a bit before adding the rosemary, so it doesn't turn brown from the heat.