Faster implementation of `ScalaCommentScanner`

Hopefully an imperative loop is fast enough, otherwise I have to think
about a different algorithm.

Fixes #1002241
Shut up noisy logger.

Fixed #1002228.
Merge pull request #777 from sschaef/t1002241-faster-comment-scanner

Faster implementation of `ScalaCommentScanner`