Bring sugar, pineapple juice, and water to a boil in a medium saucepan, stirring until sugar is dissolved. Remove from heat and add basil leaves. Allow to steep for 10 minutes. Pour through a wire mesh strainer (into a cup) and use the back of a spoon to press all the liquid out of the basil. Cool completely before proceeding.