Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stricter trivia selection. #1304

Merged
merged 3 commits into from
Dec 18, 2020
Merged

Stricter trivia selection. #1304

merged 3 commits into from
Dec 18, 2020

Conversation

nojaf
Copy link
Contributor

@nojaf nojaf commented Dec 18, 2020

Improves #1272, this PR adds some more restrictions on when a constant value should be considered trivia.
In short, Fantomas cannot always trust the values of string, numbers and characters that are found in the Untyped AST.
That is why these are picked up via the F# tokens.
However, all strings, numbers and characters were detected all the time.
In this PR, we are only detecting them as trivia if they are indeed special cases.

@nojaf nojaf merged commit 312358d into fsprojects:master Dec 18, 2020
@nojaf nojaf deleted the fix-1272 branch December 18, 2020 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant