Skip to content

add 'skipTrivia' parameter to scanner#696

Merged
vladima merged 1 commit into
masterfrom
format_code
Sep 18, 2014
Merged

add 'skipTrivia' parameter to scanner#696
vladima merged 1 commit into
masterfrom
format_code

Conversation

@vladima
Copy link
Copy Markdown
Contributor

@vladima vladima commented Sep 18, 2014

Add skipTriivia parameter tocreateScanner 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

@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Sep 18, 2014

👍

vladima added a commit that referenced this pull request Sep 18, 2014
add 'skipTrivia' parameter to scanner
@vladima vladima merged commit 3ca2a7d into master Sep 18, 2014
@vladima vladima deleted the format_code branch September 18, 2014 18:49
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants