fix brackets of endif in GrSwig