South Carolina's highest court is hearing a lawsuit that could determine if dozens of candidates will be kept from appearing on ballots for this year's elections.