add 'skipTrivia' parameter to scanner

Add `skipTriivia` parameter to`createScanner` function. When it is `true` - scanner will return only tokens, if it is `false` - both tokens and trivia.
This includes only change in the scanner so this logic can be used in formatting and classification. I've kept implementation of `skipTrivia` and `getCommentRanges` intact because switching them to use scanner has a negative perf impact - 2x emit time comparing to current implementation