Is there a way to search for a missing endif?

Is there a way to search for a missing endif?