Simplify scanner by removing need for a 'onComment' callback.

isTrivia(kind)