Microsoft/TypeScript — pull request #696 by vladima (2014-09-18 18:25:58+00:00)
Title: 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