Adding getLeadingComments and getTrailingComments methods to scanner.

This whole logic seems repeat of skip trivia, can we just factor things out instead ? It would be easier to maintain that way? / may be skipTrivia takes OnCommentStart and onCommentEnd callbacks that record the positions?